Skip to content

Commit

Permalink
change boxplot_demo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
saranti committed Apr 14, 2024
1 parent c51bab7 commit 1fa7dd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions galleries/examples/statistics/boxplot_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
axs[1, 0].set_title("don't show\noutlier points")

# horizontal boxes
axs[1, 1].boxplot(data, sym='rs', vert=False)
axs[1, 1].boxplot(data, sym='rs', orientation='horizontal')
axs[1, 1].set_title('horizontal boxes')

# change whisker length
axs[1, 2].boxplot(data, sym='rs', vert=False, whis=0.75)
axs[1, 2].boxplot(data, sym='rs', orientation='horizontal', whis=0.75)
axs[1, 2].set_title('change whisker length')

fig.subplots_adjust(left=0.08, right=0.98, bottom=0.05, top=0.9,
Expand Down Expand Up @@ -107,7 +107,7 @@
fig.canvas.manager.set_window_title('A Boxplot Example')
fig.subplots_adjust(left=0.075, right=0.95, top=0.9, bottom=0.25)

bp = ax1.boxplot(data, notch=False, sym='+', vert=True, whis=1.5)
bp = ax1.boxplot(data, notch=False, sym='+', orientation='vertical', whis=1.5)
plt.setp(bp['boxes'], color='black')
plt.setp(bp['whiskers'], color='black')
plt.setp(bp['fliers'], color='red', marker='+')
Expand Down

0 comments on commit 1fa7dd1

Please sign in to comment.