MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _validate_grabframe_kwargs

Function _validate_grabframe_kwargs

lib/matplotlib/animation.py:1827–1837  ·  view source on GitHub ↗
(savefig_kwargs)

Source from the content-addressed store, hash-verified

1825
1826
1827def _validate_grabframe_kwargs(savefig_kwargs):
1828 if mpl.rcParams['savefig.bbox'] == 'tight':
1829 raise ValueError(
1830 f"{mpl.rcParams['savefig.bbox']=} must not be 'tight' as it "
1831 "may cause frame size to vary, which is inappropriate for animation."
1832 )
1833 for k in ('dpi', 'bbox_inches', 'format'):
1834 if k in savefig_kwargs:
1835 raise TypeError(
1836 f"grab_frame got an unexpected keyword argument {k!r}"
1837 )

Callers 5

grab_frameMethod · 0.90
grab_frameMethod · 0.85
grab_frameMethod · 0.85
grab_frameMethod · 0.85
grab_frameMethod · 0.85

Calls

no outgoing calls

Tested by 1

grab_frameMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…