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

Function test_errorbar_dashes

lib/matplotlib/tests/test_axes.py:895–905  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

893
894@check_figures_equal()
895def test_errorbar_dashes(fig_test, fig_ref):
896 x = [1, 2, 3, 4]
897 y = np.sin(x)
898
899 ax_ref = fig_ref.gca()
900 ax_test = fig_test.gca()
901
902 line, *_ = ax_ref.errorbar(x, y, xerr=np.abs(y), yerr=np.abs(y))
903 line.set_dashes([2, 2])
904
905 ax_test.errorbar(x, y, xerr=np.abs(y), yerr=np.abs(y), dashes=[2, 2])
906
907
908def test_errorbar_mapview_kwarg():

Callers

nothing calls this directly

Calls 3

gcaMethod · 0.80
errorbarMethod · 0.45
set_dashesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…