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

Skip to content

Commit 6973b56

Browse files
committed
Add axes.stem call signature test
1 parent eb953ba commit 6973b56

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

lib/matplotlib/tests/test_axes.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,20 @@ def test_hist_stacked_weighted():
901901
ax = fig.add_subplot(111)
902902
ax.hist( (d1, d2), weights=(w1,w2), histtype="stepfilled", stacked=True)
903903

904+
@cleanup
905+
def test_stem_args():
906+
fig = plt.figure()
907+
ax = fig.add_subplot(1, 1, 1)
908+
909+
x = range(10)
910+
y = range(10)
911+
912+
# Test the call signatures
913+
ax.stem(y)
914+
ax.stem(x, y)
915+
ax.stem(x, y, 'r--')
916+
ax.stem(x, y, 'r--', basefmt='b--')
917+
904918
@image_comparison(baseline_images=['transparent_markers'], remove_text=True)
905919
def test_transparent_markers():
906920
np.random.seed(0)

0 commit comments

Comments
 (0)