Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3bf57d

Browse files
committed
Comments resolved after initial review of PR 24878
1 parent 9ffce62 commit d3bf57d

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

doc/users/prev_whats_new/whats_new_3.6.0.rst

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The relative width and height of columns and rows in `~.Figure.subplots` and
2121
*width_ratios* keyword arguments to the methods:
2222

2323
.. 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
2525
:include-source: true
2626

2727
fig = plt.figure()
@@ -58,7 +58,7 @@ With ``layout='tight'`` or ``'constrained'``, Axes with a fixed aspect ratio
5858
can leave large gaps between each other:
5959

6060
.. 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.
6262

6363
fig, axs = plt.subplots(2, 2, figsize=(5, 3),
6464
sharex=True, sharey=True, layout="constrained")
@@ -70,7 +70,7 @@ Using the ``layout='compressed'`` layout reduces the space between the Axes,
7070
and adds the extra space to the outer margins:
7171

7272
.. 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
7474

7575
fig, axs = plt.subplots(2, 2, figsize=(5, 3),
7676
sharex=True, sharey=True, layout='compressed')
@@ -98,7 +98,7 @@ with the previous layout engine.
9898
may be returned.
9999

100100
.. 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
102102
:include-source: true
103103

104104
fig, ax = plt.subplots()
@@ -151,6 +151,7 @@ lines.
151151

152152
.. plot::
153153
:alt: plot of x**3 where the line is an orange-blue striped line, achieved using the keywords`linestyle='--', color='orange', gapcolor='blue'
154+
154155
:include-source: true
155156

156157
x = np.linspace(1., 3., 10)
@@ -168,7 +169,7 @@ The new *capwidths* parameter to `~.Axes.bxp` and `~.Axes.boxplot` allows
168169
controlling the widths of the caps in box and whisker plots.
169170

170171
.. 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
172173
:include-source: true
173174

174175
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
189190
passing a list to *color*, as below.)
190191

191192
.. 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
193194
:include-source: true
194195

195196
x = ["a", "b", "c"]
@@ -220,7 +221,7 @@ The line style of negative contours may be set by passing the
220221
only be set globally via :rc:`contour.negative_linestyles`.
221222

222223
.. 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.
224225
:include-source: true
225226

226227
delta = 0.025
@@ -280,7 +281,7 @@ passed to `.Line2D`, rather than claiming that all keyword arguments are passed
280281
on.
281282

282283
.. plot::
283-
:alt: Graph with error bar showing + or - 0.2 error on the x-axis, and + or - 0.4 in the y axis. 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.
284285
:include-source: true
285286

286287
x = np.arange(0.1, 4, 0.5)
@@ -301,7 +302,7 @@ streamlines. Previously streamlines would end to limit the number of lines
301302
within a single grid cell. See the difference between the plots below:
302303

303304
.. 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.
305306

306307
w = 3
307308
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
326327
positive and negative values that span many orders of magnitude.
327328

328329
.. 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.
330331

331332
fig, (ax0, ax1) = plt.subplots(1, 2, sharex=True)
332333
x = np.linspace(-3, 6, 100)
@@ -371,7 +372,7 @@ The rotation point of the `~matplotlib.patches.Rectangle` can now be set to
371372
'xy', 'center' or a 2-tuple of numbers using the *rotation_point* argument.
372373

373374
.. 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.
375376

376377
fig, ax = plt.subplots()
377378

@@ -448,7 +449,7 @@ It is now possible to set or get minor ticks using `.pyplot.xticks` and
448449
`.pyplot.yticks` by setting ``minor=True``.
449450

450451
.. 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.
452453
:include-source: true
453454

454455
plt.figure()
@@ -468,7 +469,8 @@ the keyword argument *alignment*. You can also use `.Legend.set_alignment` to
468469
control the alignment on existing Legends.
469470

470471
.. 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
472474
:include-source: true
473475

474476
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
502504
rotation).
503505

504506
.. 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 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
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.
506508
:include-source: true
507509

508510
from matplotlib.markers import CapStyle, JoinStyle, MarkerStyle

0 commit comments

Comments
 (0)