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

Function test_subplot_change_projection

lib/matplotlib/tests/test_pyplot.py:288–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286
287
288def test_subplot_change_projection():
289 created_axes = set()
290 ax = plt.subplot()
291 created_axes.add(ax)
292 projections = ('aitoff', 'hammer', 'lambert', 'mollweide',
293 'polar', 'rectilinear', '3d')
294 for proj in projections:
295 ax.remove()
296 ax = plt.subplot(projection=proj)
297 assert ax is plt.subplot()
298 assert ax.name == proj
299 created_axes.add(ax)
300 # Check that each call created a new Axes.
301 assert len(created_axes) == 1 + len(projections)
302
303
304def test_polar_second_call():

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…