You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_3.9.0.rst
+86-13Lines changed: 86 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,8 @@ Plotting and Annotation improvements
22
22
Legend support for Boxplot
23
23
--------------------------
24
24
25
-
Boxplots now support a *label* parameter to create legend entries.
26
-
27
-
Legend labels can be passed as a list of strings to label multiple boxes in a single
28
-
`.Axes.boxplot` call:
29
-
25
+
Boxplots now support a *label* parameter to create legend entries. Legend labels can be
26
+
passed as a list of strings to label multiple boxes in a single `.Axes.boxplot` call:
30
27
31
28
.. plot::
32
29
:include-source:
@@ -119,21 +116,86 @@ Add option to plot only one half of violin plot
119
116
-----------------------------------------------
120
117
121
118
Setting the parameter *side* to 'low' or 'high' allows to only plot one half of the
122
-
violin plot.
119
+
`.Axes.violinplot`.
120
+
121
+
.. plot::
122
+
:include-source:
123
+
:alt: Three copies of a vertical violin plot; first in blue showing the default of both sides, followed by an orange copy that only shows the "low" (or left, in this case) side, and finally a green copy that only shows the "high" (or right) side.
... now draw circles and circular arcs (`~.Axes.axhline`) or annuli and wedges
128
143
(`~.Axes.axhspan`).
129
144
145
+
.. plot::
146
+
:include-source:
147
+
:alt: A sample polar plot, that contains an axhline at radius 1, an axhspan annulus between radius 0.8 and 0.9, and an axhspan wedge between radius 0.6 and 0.7 and 288° and 324°.
148
+
149
+
fig = plt.figure()
150
+
ax = fig.add_subplot(projection="polar")
151
+
ax.set_rlim(0, 1.2)
152
+
153
+
ax.axhline(1, c="C0", alpha=.5)
154
+
ax.axhspan(.8, .9, fc="C1", alpha=.5)
155
+
ax.axhspan(.6, .7, .8, .9, fc="C2", alpha=.5)
156
+
130
157
subplot titles can now be automatically aligned
131
158
-----------------------------------------------
132
159
133
160
Subplot axes titles can be misaligned vertically if tick labels or xlabels are placed at
134
-
the top of one subplot. The new method on the `.Figure` class: `.Figure.align_titles`
161
+
the top of one subplot. The new `~.Figure.align_titles` method on the `.Figure` class
135
162
will now align the titles vertically.
136
163
164
+
.. plot::
165
+
:include-source:
166
+
:alt: A figure with two Axes side-by-side, the second of which with ticks on top. The Axes titles and x-labels ppear unaligned with each other due to these ticks.
:alt: A figure with two Axes side-by-side, the second of which with ticks on top. Unlike the previous figure, the Axes titles and x-labels appear aligned.
0 commit comments