8000 TST: add test · matplotlib/matplotlib@047f99f · GitHub
[go: up one dir, main page]

Skip to content

Commit 047f99f

Browse files
committed
TST: add test
1 parent 47c9bd4 commit 047f99f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4221,6 +4221,20 @@ def test_pandas_indexing_dates():
42214221
ax.plot('dates', 'values', data=without_zero_index)
42224222

42234223

4224+
@cleanup
4225+
def test_pandas_errorbar_indexing():
4226+
try:
4227+
import pandas as pd
4228+
except ImportError:
4229+
raise SkipTest("Pandas not installed")
4230+
4231+
df = pd.DataFrame(np.random.uniform(size=(5, 4)),
4232+
columns=['x', 'y', 'xe', 'ye'],
4233+
index=[1, 2, 3, 4, 5])
4234+
fig, ax = plt.subplots()
4235+
ax.errorbar('x', 'y', xerr='xe', yerr='ye', data=df)
4236+
4237+
42244238
@cleanup
42254239
def test_pandas_indexing_hist():
42264240
try:

0 commit comments

Comments
 (0)
0