plenoptic-org / plenoptic

Visualize/test models for visual representation by synthesizing images.
https://plenoptic.readthedocs.io/en/latest/
MIT License
61 stars 9 forks source link

Updates matplotlib config for animations #274

Closed billbrod closed 4 months ago

billbrod commented 4 months ago

Following the investigation in #268, this updates the animation-related matplotlib configuration, adding:

plt.rcParams['animation.html'] = 'html5'
# use single-threaded ffmpeg for animation writer
plt.rcParams['animation.writer'] = 'ffmpeg'
plt.rcParams['animation.ffmpeg_args'] = ['-threads', '1']

This accomplishes several things:

This PR also updates some of the docstring and notebook text to reflect these changes

review-notebook-app[bot] commented 4 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files with missing lines Coverage Δ
src/plenoptic/synthesize/mad_competition.py 93.03% <ø> (ø)
src/plenoptic/synthesize/metamer.py 91.78% <ø> (ø)
src/plenoptic/tools/display.py 82.19% <ø> (ø)