MCPcopy
hub / github.com/matplotlib/matplotlib / test_axhvlinespan_interpolation

Function test_axhvlinespan_interpolation

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

Source from the content-addressed store, hash-verified

9971
9972@image_comparison(["axhvlinespan_interpolation.png"], style="default")
9973def test_axhvlinespan_interpolation():
9974 ax = plt.figure().add_subplot(projection="polar")
9975 ax.set_axis_off()
9976 ax.axvline(.1, c="C0")
9977 ax.axvspan(.2, .3, fc="C1")
9978 ax.axvspan(.4, .5, .1, .2, fc="C2")
9979 ax.axhline(1, c="C0", alpha=.5)
9980 ax.axhspan(.8, .9, fc="C1", alpha=.5)
9981 ax.axhspan(.6, .7, .8, .9, fc="C2", alpha=.5)
9982
9983
9984@check_figures_equal()

Callers

nothing calls this directly

Calls 7

add_subplotMethod · 0.80
figureMethod · 0.80
axvlineMethod · 0.80
axvspanMethod · 0.80
axhlineMethod · 0.80
axhspanMethod · 0.80
set_axis_offMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…