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

Function test_errorbar_remove

lib/matplotlib/tests/test_container.py:12–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def test_errorbar_remove():
13
14 # Regression test for a bug that caused remove to fail when using
15 # fmt='none'
16
17 ax = plt.gca()
18
19 eb = ax.errorbar([1], [1])
20 eb.remove()
21
22 eb = ax.errorbar([1], [1], xerr=1)
23 eb.remove()
24
25 eb = ax.errorbar([1], [1], yerr=2)
26 eb.remove()
27
28 eb = ax.errorbar([1], [1], xerr=[2], yerr=2)
29 eb.remove()
30
31 eb = ax.errorbar([1], [1], fmt='none')
32 eb.remove()
33
34
35def test_nonstring_label():

Callers

nothing calls this directly

Calls 3

gcaMethod · 0.80
errorbarMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…