-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
664 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
``boxplot`` and ``bxp`` *vert* parameter | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The parameter *vert: bool* has been deprecated on `~.Axes.boxplot` and | ||
`~.Axes.bxp`. | ||
It is replaced by *orientation: {"vertical", "horizontal"}* for API | ||
consistency. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
``boxplot`` and ``bxp`` orientation parameter | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Boxplots have a new parameter *orientation: {"vertical", "horizontal"}* | ||
to change the orientation of the plot. This replaces the deprecated | ||
*vert: bool* parameter. | ||
|
||
|
||
.. plot:: | ||
:include-source: true | ||
:alt: Example of creating 4 horizontal boxplots. | ||
|
||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
fig, ax = plt.subplots() | ||
np.random.seed(19680801) | ||
all_data = [np.random.normal(0, std, 100) for std in range(6, 10)] | ||
|
||
ax.boxplot(all_data, orientation='horizontal') | ||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-61 Bytes
(98%)
lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.pdf
Binary file not shown.
Binary file modified
BIN
-242 Bytes
(97%)
lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.