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.6.0.rst
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ The relative width and height of columns and rows in `~.Figure.subplots` and
21
21
*width_ratios* keyword arguments to the methods:
22
22
23
23
.. plot::
24
-
:alt: A figure with 3 subplots in 3 rows and 1 column. The hight of the subplot in the first row is 3 times more than the subplots in the 2nd and 3rd row
24
+
:alt: A figure with three subplots in three rows and one column. The height of the subplot in the first row is three times than the subplots in the 2nd and 3rd row
25
25
:include-source: true
26
26
27
27
fig = plt.figure()
@@ -58,7 +58,7 @@ With ``layout='tight'`` or ``'constrained'``, Axes with a fixed aspect ratio
58
58
can leave large gaps between each other:
59
59
60
60
.. plot::
61
-
:alt: A 5 by 3 inch figure with subplots displayed in 2 rows and 2 columns; Subplots have large gaps between each other.
61
+
:alt: A figure labelled "fixed-aspect plots, layout=constrained". Figure has subplots displayed in 2 rows and 2 columns; Subplots have large gaps between each other.
62
62
63
63
fig, axs = plt.subplots(2, 2, figsize=(5, 3),
64
64
sharex=True, sharey=True, layout="constrained")
@@ -70,7 +70,7 @@ Using the ``layout='compressed'`` layout reduces the space between the Axes,
70
70
and adds the extra space to the outer margins:
71
71
72
72
.. plot::
73
-
:alt:4 identical 2 by 2 heatmaps, each cell a different color: purple, blue, yellow, green going clockwise from upper left corner the 4 heatmaps are laid out in a 2 by 2 grid with minimum white space between the heatmaps
73
+
:alt:Four identical two by two heatmaps, each cell a different color: purple, blue, yellow, green going clockwise from upper left corner. The four heatmaps are laid out in a two by two grid with minimum white space between the heatmaps
74
74
75
75
fig, axs = plt.subplots(2, 2, figsize=(5, 3),
76
76
sharex=True, sharey=True, layout='compressed')
@@ -98,7 +98,7 @@ with the previous layout engine.
98
98
may be returned.
99
99
100
100
.. plot::
101
-
:alt:plot of a straight line y=x, with a small inset axis in the lower right corner that shows a circle with radial grid lines and a line plotted in polar coordinates
101
+
:alt:Plot of a straight line y=x, with a small inset axes in the lower right corner that shows a circle with radial grid lines and a line plotted in polar coordinates
102
102
:include-source: true
103
103
104
104
fig, ax = plt.subplots()
@@ -151,6 +151,7 @@ lines.
151
151
152
152
.. plot::
153
153
:alt: plot of x**3 where the line is an orange-blue striped line, achieved using the keywords`linestyle='--', color='orange', gapcolor='blue'
154
+
154
155
:include-source: true
155
156
156
157
x = np.linspace(1., 3., 10)
@@ -168,7 +169,7 @@ The new *capwidths* parameter to `~.Axes.bxp` and `~.Axes.boxplot` allows
168
169
controlling the widths of the caps in box and whisker plots.
169
170
170
171
.. plot::
171
-
:alt: A box plot with width 0.01 and 0.2
172
+
:alt: A box plot with capwidths 0.01 and 0.2
172
173
:include-source: true
173
174
174
175
x = np.linspace(-7, 7, 140)
@@ -189,7 +190,7 @@ label entries, so this is best used when bars also differ in style (e.g., by
189
190
passing a list to *color*, as below.)
190
191
191
192
.. plot::
192
-
:alt:bar chart: blue bar height 10, orange bar height 20, green bar height 15 legend with blue box labeled a, orange box labeled b, and green box labeled c
193
+
:alt:Bar chart: blue bar height 10, orange bar height 20, green bar height 15 legend with blue box labeled a, orange box labeled b, and green box labeled c
193
194
:include-source: true
194
195
195
196
x = ["a", "b", "c"]
@@ -220,7 +221,7 @@ The line style of negative contours may be set by passing the
220
221
only be set globally via :rc:`contour.negative_linestyles`.
221
222
222
223
.. plot::
223
-
:alt:two contour plots, each showing two positive and two negative contours. The positive contours are shown in solid black lines in both plots. In one plot the negative contours are shown in dashed lines, which is the current styling. In the other plot they're shown in dotted lines, which is one of the new options.
224
+
:alt:Two contour plots, each showing two positive and two negative contours. The positive contours are shown in solid black lines in both plots. In one plot the negative contours are shown in dashed lines, which is the current styling. In the other plot they're shown in dotted lines, which is one of the new options.
224
225
:include-source: true
225
226
226
227
delta = 0.025
@@ -280,7 +281,7 @@ passed to `.Line2D`, rather than claiming that all keyword arguments are passed
280
281
on.
281
282
282
283
.. plot::
283
-
:alt: Graph with error bar showing + or - 0.2 error on the x-axis, and + or - 0.4 in the yaxis. Error bar marker is a circle radius 20. Error bar face color is blue
284
+
:alt: Graph with error bar showing ±0.2 error on the x-axis, and ±0.4 error on the y-axis. Error bar marker is a circle radius 20. Error bar face color is blue.
284
285
:include-source: true
285
286
286
287
x = np.arange(0.1, 4, 0.5)
@@ -301,7 +302,7 @@ streamlines. Previously streamlines would end to limit the number of lines
301
302
within a single grid cell. See the difference between the plots below:
302
303
303
304
.. plot::
304
-
:alt: A figure with two streamplots. First streamplot has broken streamlnes. Second streamplot has continuous streamlines
305
+
:alt: A figure with two streamplots. First streamplot has broken streamlines. Second streamplot has continuous streamlines.
305
306
306
307
w = 3
307
308
Y, X = np.mgrid[-w:w:100j, -w:w:100j]
@@ -326,7 +327,7 @@ the scale. This is based on an arcsinh transformation that allows plotting both
326
327
positive and negative values that span many orders of magnitude.
327
328
328
329
.. plot::
329
-
:alt:A figure with 2 subplots. Subplot on the left uses symlog scale on the y axis. The transition at -2 is not smooth. Subplot on the right use asinh scale. The transition at -2 is smooth
330
+
:alt: figure with 2 subplots. Subplot on the left uses symlog scale on the y axis. The transition at -2 is not smooth. Subplot on the right use asinh scale. The transition at -2 is smooth.
330
331
331
332
fig, (ax0, ax1) = plt.subplots(1, 2, sharex=True)
332
333
x = np.linspace(-3, 6, 100)
@@ -371,7 +372,7 @@ The rotation point of the `~matplotlib.patches.Rectangle` can now be set to
371
372
'xy', 'center' or a 2-tuple of numbers using the *rotation_point* argument.
372
373
373
374
.. plot::
374
-
:alt:blue square that isn't rotated. green square rotated 45 degrees relative to center. orange square rotated 45 degrees relative to lower right corner. red square rotated 45 degrees relative to point in upper right quadrant
375
+
:alt:Blue square that isn't rotated. Green square rotated 45 degrees relative to center. Orange square rotated 45 degrees relative to lower right corner. Red square rotated 45 degrees relative to point in upper right quadrant.
375
376
376
377
fig, ax = plt.subplots()
377
378
@@ -448,7 +449,7 @@ It is now possible to set or get minor ticks using `.pyplot.xticks` and
448
449
`.pyplot.yticks` by setting ``minor=True``.
449
450
450
451
.. plot::
451
-
:alt: Plot showing a line from 1,2 to 3.5,-0.5. X axis showing the points 1,2 and 3 on the x axis as One, Zwei, Trois as minor ticks
452
+
:alt: Plot showing a line from 1,2 to 3.5,-0.5. X axis showing the 1, 2 and 3 minor ticks on the x axis as One, Zwei, Trois.
452
453
:include-source: true
453
454
454
455
plt.figure()
@@ -468,7 +469,8 @@ the keyword argument *alignment*. You can also use `.Legend.set_alignment` to
468
469
control the alignment on existing Legends.
469
470
470
471
.. plot::
471
-
:alt: Figure with 3 subplots. All the subplots are titled test. The three subplots have legends titled alignment='left', alignment='center',alignment='right'. The legend texts are respectively aligned left, center and right
472
+
:alt: Figure with 3 subplots. All the subplots are titled test. The three subplots have legends titled alignment='left', alignment='center', alignment='right'. The legend texts are respectively aligned left, center and right,
473
+
:alt: Plot showing a line from 1,2 to 3.5,-0.5. X axis showing the 1, 2 and 3
472
474
:include-source: true
473
475
474
476
fig, axs = plt.subplots(3, 1)
@@ -502,7 +504,7 @@ for the user to supply a transformation to be applied to the marker (e.g. a
502
504
rotation).
503
505
504
506
.. plot::
505
-
:alt:hree rows of markers, columns are blue, green, and purple. first row is yshaped markers with different capstyles:. butt: end is squared off at endpoint. projecting: end is squared off at short distance from endpoint. round: end is rounded. second row is starshaped markers with different join styles:. miter: star points are sharp triangles. round: star points are rounded. bevel: star points are beveled. last row shows stars rotated at different angles:. small star rotated 0 degrees - top point vertical. medium star rotated 45 degrees - top point tilted right. large star rotated 90 degrees - top point tilted left
507
+
:alt:Three rows of markers, columns are blue, green, and purple. First row is y-shaped markers with different capstyles: butt, end is squared off at endpoint; projecting, end is squared off at short distance from endpoint; round, end is rounded. Second row is star-shaped markers with different join styles: miter, star points are sharp triangles; round, star points are rounded; bevel, star points are beveled. Last row shows stars rotated at different angles: small star rotated 0 degrees - top point vertical; medium star rotated 45 degrees - top point tilted right; large star rotated 90 degrees - top point tilted left.
506
508
:include-source: true
507
509
508
510
from matplotlib.markers import CapStyle, JoinStyle, MarkerStyle
0 commit comments