python manim数字缩放语法
Manim Numberline对象:
manim比例对象:
a = NumberLine(
x_range=[-2.5, 2.5, 0.5],
length=13,
decimal_number_config={"num_decimal_places": 1},
include_numbers=True,
font_size = 50,
tick_size = 0.2,
scaling = LinearBase.function(lambda x:1/x)
)
我是新手编码器,所以我不明白如何通过在范围内的值来告诉我的数字线来扩展x_range。
通过在x_range中反转所有值来缩放我的数字行的适当语法是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://github.com/manimcommunity/manimcommunity/manim/manim/discussions/2758
由@behackl。
创建一个自定义类。
https://github.com/ManimCommunity/manim/discussions/2758
Answered on GitHub by @behackl.
Create a custom class.