-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Crash when using plot_implicit_curve on Axes with certain range #4090
Comments
Actually, it corresponds to the current state of the |
For the record, I modified |
Sorry, I forgot to mention that the code originated from an earlier animation I wrote using Manim 0.18.1. |
I just submitted a short PR fixing this.
|
Description of bug / unexpected behavior
When plotting a certain function using plot_implicit_curve on an axes object with a certain range, manim crashes.
Expected behavior
I would expect that manim did not crash.
How to reproduce the issue
To reproduce the issue do the following
implicit_plot_issue.py
with the content given belowvectorized_mobject.py
after line 1060 with the contentprint(f"points.shape: { points.shape }")
this is to help with debuggingCode for reproducing the problem
Content of
implicit_plot_issue.py
Additional media files
No media files are generated.
Logs
Terminal output
System specifications
System Details
python/py/python3 --version
):pip list
):Additional comments
It seems like the method
add_points_as_corners
is called with an empty list of points, which it cannot handle and thus crashes.If the x or y range of the Axes are changed the issue disapear in most cases.
The issue can also vanish if the function to plot is changed.
The text was updated successfully, but these errors were encountered: