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

Function test_inset_polar

lib/matplotlib/tests/test_axes.py:8381–8390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8379
8380@image_comparison(['inset_polar.png'], remove_text=True, style='mpl20')
8381def test_inset_polar():
8382 _, ax = plt.subplots()
8383 axins = ax.inset_axes([0.5, 0.1, 0.45, 0.45], polar=True)
8384 assert isinstance(axins, PolarAxes)
8385
8386 r = np.arange(0, 2, 0.01)
8387 theta = 2 * np.pi * r
8388
8389 ax.plot(theta, r)
8390 axins.plot(theta, r)
8391
8392
8393def test_inset_projection():

Callers

nothing calls this directly

Calls 3

inset_axesMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…