You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be extremely helpful to have a link to the parent's save method from animation.FuncAnimation's documentation base, as currently I don't think there is a straightforward way to find that documentation. I actually had to go to the source code of FuncAnimation, and follow up its inheritance tree to find where save was defined, then either read the docstring or find the corresponding method in the online documentation.
To extend this further - it would be helpful for all subclasses to have proper links to a parent method's documentation when the method isn't modified in the child.
The text was updated successfully, but these errors were encountered:
kwsp
changed the title
[Doc]: Improve animation.FuncAnimation.save
[Doc]: Improve animation.FuncAnimation.save - link parent methods in child's method documentation
Oct 12, 2022
While, of course, the best solution is to get the inheritance documentation working, a simple step to partly remedy this would be to do something similar.
I see. For now, I think we should specify that FuncAnimation is a subclass of TimedAnimation, then users can follow the docs up the inheritance tree to find the documentation for inherited methods.
I can try to investigate how we can get inheritance documentation working
Documentation Link
https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FuncAnimation.html
Problem
In https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FuncAnimation.html, the documentation of
save
is very incomplete. This is becausesave
is a method inherited from the parentanimation.Animation
.Suggested improvement
I think it would be extremely helpful to have a link to the parent's
save
method fromanimation.FuncAnimation
's documentation base, as currently I don't think there is a straightforward way to find that documentation. I actually had to go to the source code ofFuncAnimation
, and follow up its inheritance tree to find wheresave
was defined, then either read the docstring or find the corresponding method in the online documentation.To extend this further - it would be helpful for all subclasses to have proper links to a parent method's documentation when the method isn't modified in the child.
The text was updated successfully, but these errors were encountered: