manim
manim copied to clipboard
Unnatural axis alignment when using faded_line_ratio property
Description of bug / unexpected behaviour
An uneven interval between the axis and grids causes mapping of coordinates using the NumberPlane.c2p unexpected.
Expected behaviour
The interval between the units from ORIGIN should be uniform and Coordinates should be mapped properly.
How to reproduce the issue
Code for reproducing the problem
class Test(Scene):
def construct(self):
numberplane = NumberPlane(
faded_line_ratio=5,
axis_config={
"font_size": 40,
}
).add_coordinates()
coord = numberplane.c2p
self.add(
Dot(coord(0, 0)),
Dot(coord(1, 0)),
Dot(coord(2, 0)),
)
self.add(numberplane)
Additional media files
Images/GIFs
System specifications
Not relevant