@@ -125,7 +125,7 @@ Note that they may *not* be used to share axes after any operation (e.g.,
125
125
drawing) has occurred on them.
126
126
127
127
128
- Align labels to axes edges
128
+ Align labels to Axes edges
129
129
--------------------------
130
130
131
131
`~.axes.Axes.set_xlabel `, `~.axes.Axes.set_ylabel ` and `.ColorbarBase.set_label `
@@ -138,15 +138,14 @@ takes the rcParam based on its orientation.
138
138
New "extend" keyword to colors.BoundaryNorm
139
139
-------------------------------------------
140
140
141
- `~.colors.BoundaryNorm ` now has an ``extend `` keyword argument, analogous to
142
- ``extend `` in `~.axes.Axes.contourf `. When set to 'both', 'min', or 'max',
143
- it maps the corresponding out-of-range values to `~.colors.Colormap `
144
- lookup-table indices near the appropriate ends of their range so that the
145
- colors for out-of range values are adjacent to, but distinct from, their
146
- in-range neighbors. The colorbar inherits the ``extend `` argument from the
147
- norm, so with ``extend='both' ``, for example, the colorbar will have triangular
148
- extensions for out-of-range values with colors that differ from adjacent in-range
149
- colors.
141
+ `~.colors.BoundaryNorm ` now has an *extend * keyword argument, analogous to
142
+ *extend * in `~.axes.Axes.contourf `. When set to 'both', 'min', or 'max', it
143
+ maps the corresponding out-of-range values to `~.colors.Colormap ` lookup-table
144
+ indices near the appropriate ends of their range so that the colors for out-of
145
+ range values are adjacent to, but distinct from, their in-range neighbors. The
146
+ colorbar inherits the *extend * argument from the norm, so with
147
+ ``extend='both' ``, for example, the colorbar will have triangular extensions
148
+ for out-of-range values with colors that differ from adjacent in-range colors.
150
149
151
150
.. plot ::
152
151
@@ -217,15 +216,15 @@ raising the plot window when calling `~.pyplot.show` or `~.pyplot.pause`.
217
216
218
217
219
218
220
- Imshow now coerces 3D arrays with depth 1 to 2D
221
- ------------------------------------------------
219
+ `` imshow `` now coerces 3D arrays with depth 1 to 2D
220
+ ---------------------------------------------------
222
221
223
222
Starting from this version arrays of size MxNx1 will be coerced into MxN
224
223
for displaying. This means commands like ``plt.imshow(np.random.rand(3, 3, 1)) ``
225
224
will no longer return an error message that the image shape is invalid.
226
225
227
226
228
- ``Axes3D `` no longer distorts the 3d plot to match the 2d aspect ratio
227
+ ``Axes3D `` no longer distorts the 3D plot to match the 2D aspect ratio
229
228
----------------------------------------------------------------------
230
229
231
230
Plots made with :class: `~mpl_toolkits.mplot3d.axes3d.Axes3D ` were previously
@@ -251,12 +250,12 @@ Home/Forward/Backward buttons now work with 3D axes
251
250
252
251
253
252
254
- ``savefig() `` gained a `` backend `` keyword argument
255
- ---------------------------------------------------
253
+ ``savefig() `` gained a * backend * keyword argument
254
+ -------------------------------------------------
256
255
257
- The `` backend `` keyword argument to ``savefig `` can now be used to pick the
256
+ The * backend * keyword argument to ``savefig `` can now be used to pick the
258
257
rendering backend without having to globally set the backend; e.g. one can save
259
- pdfs using the pgf backend with ``savefig("file.pdf", backend="pgf") ``.
258
+ PDFs using the pgf backend with ``savefig("file.pdf", backend="pgf") ``.
260
259
261
260
262
261
Offset text is now set to the top when using ``axis.tick_top() ``
@@ -274,11 +273,11 @@ dropping the last row and column of *C*, and *x* and *y* are regarded as the
274
273
edges of the remaining rows and columns in *C *. However, many users want
275
274
*x * and *y * centered on the rows and columns of *C *.
276
275
277
- To accommodate this, ``shading='nearest' `` and ``shading='auto' `` are
278
- new allowed strings for the `` shading `` kwarg. ``'nearest' `` will center the
279
- color on *x * and *y * if *x * and *y * have the same dimensions as *C *
280
- (otherwise an error will be thrown). ``shading='auto' `` will choose 'flat'
281
- or 'nearest' based on the size of *X *, *Y *, *C *.
276
+ To accommodate this, ``shading='nearest' `` and ``shading='auto' `` are new
277
+ allowed strings for the * shading * keyword argument. ``'nearest' `` will center
278
+ the color on *x * and *y * if *x * and *y * have the same dimensions as *C *
279
+ (otherwise an error will be thrown). ``shading='auto' `` will choose 'flat' or
280
+ 'nearest' based on the size of *X *, *Y *, *C *.
282
281
283
282
If ``shading='flat' `` then *X *, and *Y * should have dimensions one larger
284
283
than *C *. If *X * and *Y * have the same dimensions as *C *, then the previous
@@ -296,20 +295,20 @@ for examples.
296
295
Set zorder of contour labels
297
296
----------------------------
298
297
299
- `~.axes.Axes.clabel ` now accepts a *zorder * kwarg
300
- making it easier to set the *zorder * of contour labels.
301
- If not specified, the default * zorder * of clabels used to always be 3
302
- (i.e. the default * zorder * of ` ~.text.Text `) irrespective of the *zorder *
303
- passed to `~.axes.Axes.contour `/`~.axes.Axes.contourf `.
304
- The new default * zorder * for clabels has been changed to (``2 + zorder ``
305
- passed to ` ~.axes.Axes.contour ` / `~.axes.Axes.contourf `).
298
+ `~.axes.Axes.clabel ` now accepts a *zorder * keyword argument making it easier
299
+ to set the *zorder * of contour labels. If not specified, the default * zorder *
300
+ of clabels used to always be 3 (i.e. the default * zorder * of ` ~.text.Text `)
301
+ irrespective of the *zorder * passed to
302
+ `~.axes.Axes.contour `/`~.axes.Axes.contourf `. The new default * zorder * for
303
+ clabels has been changed to (``2 + zorder `` passed to ` ~.axes.Axes.contour ` /
304
+ `~.axes.Axes.contourf `).
306
305
307
306
308
307
Simple syntax to select fonts by absolute path
309
308
----------------------------------------------
310
309
311
310
Fonts can now be selected by passing an absolute `pathlib.Path ` to the *font *
312
- kwarg of `.Text `.
311
+ keyword argument of `.Text `.
313
312
314
313
315
314
Add generalized "mathtext.fallback" rcParam
@@ -397,8 +396,8 @@ conversion (using the new epoch) is::
397
396
398
397
399
398
400
- `~.axes.Axes.set_title ` gains a y keyword argument to control auto positioning
401
- ------------------------------------------------------------------------------
399
+ `~.axes.Axes.set_title ` gains a * y * keyword argument to control auto positioning
400
+ --------------------------------------------------------------------------------
402
401
403
402
`~.axes.Axes.set_title ` tries to auto-position the title to avoid any
404
403
decorators on the top x-axis. This is not always desirable so now
@@ -416,10 +415,10 @@ Add :rc:`contour.linewidth` to rcParams
416
415
---------------------------------------
417
416
418
417
The new config option :rc: `contour.linewidth ` allows to control the default
419
- linewidth of contours as a float. When set to ``None ``, the linewidths fall
420
- back to :rc: `lines.linewidth `. The config value is overidden as usual
421
- by the `` linewidths `` argument passed to `~.axes.Axes.contour ` when
422
- it is not set to ``None ``.
418
+ line width of contours as a float. When set to ``None ``, the line widths fall
419
+ back to :rc: `lines.linewidth `. The config value is overridden as usual by the
420
+ * linewidths * argument passed to `~.axes.Axes.contour ` when it is not set to
421
+ ``None ``.
423
422
424
423
425
424
The SVG backend can now render hatches with transparency
0 commit comments