Skip to content

Commit

Permalink
Fix violin test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden committed Nov 20, 2024
1 parent 22ac522 commit 2806410
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9312,16 +9312,13 @@ def test_violinplot_orientation(fig_test, fig_ref):

plt.close()

# Deprecation of `vert: bool` keyword
with pytest.warns(mpl.MatplotlibDeprecationWarning,
match='vert: bool was deprecated in Matplotlib 3.10'):
# Compare images between a figure that
# uses vert and one that uses orientation.
ax_ref = fig_ref.subplots()
ax_ref.violinplot(all_data, vert=False)
# Compare images between a figure that
# uses vert and one that uses orientation.
ax_ref = fig_ref.subplots()
ax_ref.violinplot(all_data, vert=False)

ax_test = fig_test.subplots()
ax_test.violinplot(all_data, orientation='horizontal')
ax_test = fig_test.subplots()
ax_test.violinplot(all_data, orientation='horizontal')


@check_figures_equal(extensions=['png'])
Expand Down

0 comments on commit 2806410

Please sign in to comment.