manim icon indicating copy to clipboard operation
manim copied to clipboard

Unnatural axis alignment when using faded_line_ratio property

Open hemanta212 opened this issue 2 years ago • 0 comments

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

image

System specifications

Not relevant

Additional comments

hemanta212 avatar Jul 22 '22 16:07 hemanta212