Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Animation Examples #11823

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

Closed
anthonytec2 opened this issue Aug 7, 2018 · 4 comments · Fixed by #17477
Closed

Animation Examples #11823

anthonytec2 opened this issue Aug 7, 2018 · 4 comments · Fixed by #17477

Comments

@anthonytec2
Copy link

When going to the gallery of the different plots under the animation section, various of these plots are blank. See this link. Possibly an issue with documentation generation.

@ImportanceOfBeingErnest
Copy link
Member

This is expected. The purpose of those examples is to show how an animation is produced. Yet, the way the matplotlib documentation is generated, it is currently not possible to show animated output. The images shown are the static version of the animations, i.e. the state of the figure before the animation actually starts.

One possible solution would be to not use the automatic sphinx-gallery output for those examples, but rather generate some animated gifs manually and link them statically inside the example file.

One might also opt for not showing any output (that would be easier compared to the above, but maybe equally confusing?).

The question is a bit whether either of the above is really worth the effort.

@QuLogic
Copy link
Member

QuLogic commented Aug 7, 2018

There is some hope to do something like this in sphinx-gallery: sphinx-gallery/sphinx-gallery#150

@anthonytec2
Copy link
Author

I am starting to try and figure out a workable solution to this, although I currently cannot build the docs. I keep getting this error: Warning, treated as error:
[autosummary] failed to import 'matplotlib.animation.PillowWriter': no module named matplotlib.animation.PillowWriter. Anyone know what this is due to? I have Pillow installed.

@ImportanceOfBeingErnest
Copy link
Member

@anthonytec2 seems like you are building the docs from an environment that has an older matplotlib version in it. E.g. if you had a system-wide python with matplotlib 2.1 installed and some folder with matplotlib 2.2, then running make html to build the docs from that folder would probably result in such error.


In general I do think it's worth waiting for sphinx-gallery to sort out their new scraper system.

@tacaswell tacaswell added this to the v3.1 milestone Aug 10, 2018
@tacaswell tacaswell modified the milestones: v3.1.0, v3.2.0 Mar 18, 2019
@tacaswell tacaswell modified the milestones: v3.2.0, needs sorting Sep 10, 2019
@story645 story645 linked a pull request May 21, 2020 that will close this issue
2 tasks
@QuLogic QuLogic modified the milestones: needs sorting, v3.3.0 May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants