8000 Clean up single height bar test · matplotlib/matplotlib@9e7296c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e7296c

Browse files
committed
Clean up single height bar test
1 parent 268bedd commit 9e7296c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4881,7 +4881,8 @@ def test_eventplot_legend():
48814881

48824882
@cleanup
48834883
def test_bar_single_height():
4884+
fig, ax = plt.subplots()
48844885
# Check that a bar chart with a single height for all bars works
4885-
plt.bar(range(4), 1)
4886+
ax.bar(range(4), 1)
48864887
# Check that a horizontal chart with one width works
4887-
plt.bar(0, 1, bottom=range(4), width=1, orientation='horizontal')
4888+
ax.bar(0, 1, bottom=range(4), width=1, orientation='horizontal')

0 commit comments

Comments
 (0)
0