Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 333136b

Browse files
committed
Merge pull request #5244 from rmorshea/matlab_label_warn_in_test
TST: suppress warnings in test suite
2 parents 08acc8d + c02afdd commit 333136b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,14 +3643,14 @@ def test_twin_spines_on_top():
36433643
ax2.fill_between(data[0], data[1]/1E3, color='#7FC97F', alpha=.5)
36443644

36453645
# Reuse testcase from above for a labeled data test
3646-
data = {"x": data[0], "y": data[1]/1E3}
3646+
data = {"i": data[0], "j": data[1]/1E3}
36473647
fig = plt.figure()
36483648
ax1 = fig.add_subplot(1, 1, 1)
36493649
ax2 = ax1.twinx()
3650-
ax1.plot("x", "y", color='#BEAED4', data=data)
3651-
ax1.fill_between("x", "y", color='#BEAED4', alpha=.8, data=data)
3652-
ax2.plot("x", "y", color='#7FC97F', data=data)
3653-
ax2.fill_between("x", "y", color='#7FC97F', alpha=.5, data=data)
3650+
ax1.plot("i", "j", color='#BEAED4', data=data)
3651+
ax1.fill_between("i", "j", color='#BEAED4', alpha=.8, data=data)
3652+
ax2.plot("i", "j", color='#7FC97F', data=data)
3653+
ax2.fill_between("i", "j", color='#7FC97F', alpha=.5, data=data)
36543654

36553655

36563656
@cleanup

0 commit comments

Comments
 (0)