8000 Test scalar width and height specification · matplotlib/matplotlib@268bedd · GitHub
[go: up one dir, main page]

Skip to content

Commit 268bedd

Browse files
committed
Test scalar width and height specification
1 parent febc629 commit 268bedd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4877,3 +4877,11 @@ def test_scatter_color_masking():
48774877
def test_eventplot_legend():
48784878
plt.eventplot([1.0], label='Label')
48794879
plt.legend()
4880+
4881+
4882+
@cleanup
4883+
def test_bar_single_height():
4884+
# Check that a bar chart with a single height for all bars works
4885+
plt.bar(range(4), 1)
4886+
# Check that a horizontal chart with one width works
4887+
plt.bar(0, 1, bottom=range(4), width=1, orientation='horizontal')

0 commit comments

Comments
 (0)
0