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

Function clear_state

lib/matplotlib/sphinxext/plot_directive.py:605–609  ·  view source on GitHub ↗
(plot_rcparams, close=True)

Source from the content-addressed store, hash-verified

603
604
605def clear_state(plot_rcparams, close=True):
606 if close:
607 plt.close('all')
608 matplotlib.rc_file_defaults()
609 matplotlib.rcParams.update(plot_rcparams)
610
611
612def get_plot_formats(config):

Callers 1

render_figuresFunction · 0.85

Calls 2

closeMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…