-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Finish issue 3804 and pass all the tests of number_line #3962
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,114 @@ | |||
from __future__ import annotations | |||
|
|||
from manim import * |
Check notice
Code scanning / CodeQL
'import *' may pollute namespace Note
manim
class AnimatableNumberLine(NumberLine): | ||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.x_range_tracker = ValueTracker(self.x_range) |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class Warning
NumberLine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for trying to tackle this issue, it's something we've wanted to get to for a while now :)
However, I'm not sure that creating a new class is the right way to go, because it could cause confusion when to use the normal classes vs the Animatable*
versions. I believe it should be possible to use the original classes to add this behavior.
What do you think?
Overview: What does this pull request change?
Change number_line.py and add animatable_coordinate_systems.py
Motivation and Explanation: Why and how do your changes improve the library?
To fix issue #3804
Links to added or changed documentation pages
Further Information and Comments
Reviewer Checklist