如何更改tip_width和tip_height numberline? (Manim V0.15.2)
(嗨。这是我在堆栈溢出上的第一个问题,所以请让我知道问题是否尚不清楚。)
我试图使数字暴民的箭头小于默认值(tip_width = 0.25,tip_height = 0.25) 。 但是,提示自定义似乎不起作用。 这是代码和结果:
from manim import *
class NumberLineComparison(Scene):
def construct(self):
l0 = NumberLine(
x_range=[-3,3],
include_tip=True
)
l1 = NumberLine(
x_range=[-3,3],
include_tip=True,
tip_width=0.1
).next_to(l0,DOWN)
l2 = NumberLine(
x_range=[-3,3],
include_tip=True,
tip_height=0.1
).next_to(l1,DOWN)
self.add(l0,l1,l2)
tip_width和tip_height and tip_height属性的更改似乎是活跃的...
这是一个错误还是语法有任何问题?
(Hi. This is my very first question on stack overflow so please let me know if the question is unclear.)
I am trying to make the arrowhead of a NumberLine mobject smaller than its default (which is tip_width = 0.25, tip_height = 0.25).
However the tip customization doesn't seem to be working.
Here is the code and the result:
from manim import *
class NumberLineComparison(Scene):
def construct(self):
l0 = NumberLine(
x_range=[-3,3],
include_tip=True
)
l1 = NumberLine(
x_range=[-3,3],
include_tip=True,
tip_width=0.1
).next_to(l0,DOWN)
l2 = NumberLine(
x_range=[-3,3],
include_tip=True,
tip_height=0.1
).next_to(l1,DOWN)
self.add(l0,l1,l2)
The changes in tip_width and tip_height attributes don't seem to be active...
Is this a bug or are there any problems with the syntax?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在AXIS_CONFIG参数中定义属性。这是一个最小的工作示例:
您还可以单独操纵X轴和Y轴子对象,如下...
You need to define the attributes in the axis_config parameter. Here's a minimal working example:
You can also manipulate the x-axis and y-axis sub-Mobject individually, as follows ...