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

Function test_image

lib/matplotlib/tests/test_pickle.py:193–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191
192
193def test_image():
194 # Prior to v1.4.0 the Image would cache data which was not picklable
195 # once it had been drawn.
196 from matplotlib.backends.backend_agg import new_figure_manager
197 manager = new_figure_manager(1000)
198 fig = manager.canvas.figure
199 ax = fig.add_subplot(1, 1, 1)
200 ax.imshow(np.arange(12).reshape(3, 4))
201 manager.canvas.draw()
202 pickle.dump(fig, BytesIO())
203
204
205def test_polar():

Callers

nothing calls this directly

Calls 4

new_figure_managerFunction · 0.85
add_subplotMethod · 0.80
imshowMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…