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
[Doc]: Arguments of FFMpegFileWriter not clear. #22831
Comments
The task here is to sort out why matplotlib/lib/matplotlib/animation.py Lines 267 to 288 in c33557d
matplotlib/lib/matplotlib/animation.py Lines 389 to 391 in c33557d
|
|
Maybe we should adopt numpydocs convention to always document init parameters in the class docstring https://numpydoc.readthedocs.io/en/latest/format.html#class-docstring |
There is also quite a bit of failing cross-references in the animation docs that one possibly can try to sort out at the same time. |
I would like to work on this issue. Can someone guide me a bit to resolve it? |
Hi all, I am interested in working on this issue. Working towards my first contribution to matplotlib project, I have successfully set up matplotlib for development. As of now, I am competent in reading classes and their inheritance hierarchies. Therefore, I am hoping I can solve this issue. As suggested by @tacaswell,
the @kkoutris I am happy to collaborate with you on this issue 😄 . |
For what it is worth: import inspect
import matplotlib.animation as manim
print(inspect.getdoc(manim.FFMpegFileWriter.__init__)) shows that the doc-string is correctly inherited. Another interesting thing here is that the clickable inheritance image in https://matplotlib.org/stable/api/animation_api.html is a bit messed up for the Writer classes. Not sure if that is related. Also note that the ImageMagickFileWriter suffers from the same problem, so if you figure out how to solve it for FFMpegFileWriter, please apply it to ImageMagickFileWriter as well. |
Just for completeness, since there seems to be some refactoring of FFMpegFileWriter in progress:
To be honest, it is not obvious to me at all to set up FFMpegFileWriter. |
Documentation Link
https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FFMpegFileWriter.html
Problem
There is no word on what arguments to set via
*args, **kwargs
.Also, I am wondering how to control where the temporary frame files are stored. I was unable to find them in my/tmp
directoryokay, that is actually rather clear (
frame_prefix
insetup
)Suggested improvement
List arguments or refer to class whose initialization arguments are to be used.
The text was updated successfully, but these errors were encountered: