Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManimCE 0.19.0 and 0.18.1: Axes.c2p() intermittent problem #4155

Open
uwezi opened this issue Feb 4, 2025 · 0 comments
Open

ManimCE 0.19.0 and 0.18.1: Axes.c2p() intermittent problem #4155

uwezi opened this issue Feb 4, 2025 · 0 comments

Comments

@uwezi
Copy link
Contributor

uwezi commented Feb 4, 2025

Description of bug / unexpected behavior

( this is a spin-off from issue 4153 )
During the process of self.play(Create(axes)) the functionality of .coords_to_point() is momentarily broken.

Expected behavior

The method .coords_to_point(x,y) does give the correct position on the scene when the corresponding Axes() object is not on the screen which can be used for coordinate transformations. It also works correctly when the Axes() object is placed on the scene. But during the process of the animated creation of the Axes() object the coordinate calculation is broken, which becomes apparent when .c2p() is used in an updater which is active during the creation of the Axes() object.

How to reproduce the issue

Code for reproducing the problem
class weird(Scene):
    def construct(self):
        axes = Axes(
            x_range=(-1,4,1),
            y_range=(-2,5,1),
            tips=False,
        ).add_coordinates()
        dotA=always_redraw(lambda: Dot(point=axes.c2p(2,2)))
        self.add(dotA)
        self.wait()
        self.play(Create(axes))
        self.wait(1)

Additional media files

rendered video ManimCE 0.19.0
weird.mp4

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Windows 10
  • RAM:
  • Python version (python/py/python3 --version): 3.13 and 3.11

Additional comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant