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

Skip to content

Commit 806928a

Browse files
committed
Merge pull request matplotlib#1271 from jkseppan/stackplot-test
Set axis limits in test_stackplot
2 parents 7efbb8b + 0694fbd commit 806928a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,8 @@ def test_stackplot():
822822
y3 = 3.0 * x + 2
823823
ax = fig.add_subplot(1, 1, 1)
824824
ax.stackplot(x, y1, y2, y3)
825+
ax.set_xlim((0, 10))
826+
ax.set_ylim((0, 70))
825827

826828
@image_comparison(baseline_images=['boxplot'])
827829
def test_boxplot():

0 commit comments

Comments
 (0)