1
- Unit converters now handle instances of subclasses
2
- ``````````````````````````````````````````````````
1
+
2
+ What's new in Matplotlib 3.2
3
+ ============================
4
+
5
+ For a list of all of the issues and pull requests since the last
6
+ revision, see the :ref: `github-stats `.
7
+
8
+ .. contents :: Table of Contents
9
+ :depth: 4
10
+
11
+ .. toctree ::
12
+ :maxdepth: 4
13
+
14
+
15
+ Unit converters and subclasses
16
+ ------------------------------
3
17
Unit converters now also handle instances of subclasses of the class they have
4
18
been registered for.
5
19
6
- `~pyplot.imsave ` gained support for the ``metadata `` and ``pil_kwargs `` parameters
7
- ``````````````````````````````````````````````````````````````````````````````````
8
- These parameters behave similarly as for the `Figure.savefig() ` method.
20
+ `~pyplot.imsave ` metadata and PIL options
21
+ -----------------------------------------
22
+ `~pyplot.imsave ` has gained support for the ``metadata `` and ``pil_kwargs ``
23
+ parameters. These parameters behave similarly as for the `Figure.savefig() `
24
+ method.
9
25
10
-
11
- `cbook.normalize_kwargs ` can be used to normalize artist property names
12
- ```````````````````````````````````````````````````````````````````````
26
+ `cbook.normalize_kwargs `
27
+ ------------------------
13
28
`cbook.normalize_kwargs ` now presents a convenient interface to normalize
14
29
artist properties (e.g., from "lw" to "linewidth"):
15
30
@@ -20,12 +35,13 @@ The first argument is the mapping to be normalized, and the second argument can
20
35
be an artist class or an artist instance (it can also be a mapping in a
21
36
specific format; see the function's docstring for details).
22
37
38
+ `FontProperties ` and `os.PathLike `
39
+ ----------------------------------
23
40
The *fname * argument to `FontProperties ` can now be an `os.PathLike `\s
24
- ``````````````````````````````````````````````````````````````````````
25
41
e.g. ``FontProperties(fname=pathlib.Path("/path/to/font.ttf")) ``.
26
42
27
- Gouraud-shaded mesh alpha channels in the pdf backend
28
- -----------------------------------------------------
43
+ Gouraud-shading alpha channel in PDF backend
44
+ --------------------------------------------
29
45
The pdf backend now supports an alpha channel in Gouraud-shaded
30
46
triangle meshes.
31
47
@@ -63,23 +79,13 @@ depending on font support (e.g., T and e, or the period after the W).
63
79
ax.set_title('After (text.kerning_factor = 0)')
64
80
65
81
66
- bar3d gained support for the `` lightsource `` parameter
67
- ------------------------------------------------------
82
+ bar3d lightsource shading
83
+ -------------------------
68
84
bar3d now supports lighting from different angles when the *shade * parameter is
69
- True.
85
+ True, which can be configured using the `` lightsource `` parameter .
70
86
71
- Errorbar plots can shift which points have error bars
72
- -----------------------------------------------------
73
- Previously, `plt.errorbar() ` accepted a kwarg `errorevery ` such that the
74
- command `plt.errorbar(x, y, yerr, errorevery=6) ` would add error bars to
75
- datapoints `x[::6], y[::6] `.
76
-
77
- `errorbar() ` now also accepts a tuple for `errorevery ` such that
78
- `plt.errorbar(x, y, yerr, errorevery=(start, N)) ` adds error bars to points
79
- `x[start::N], y[start::N] `.
80
-
81
- Errorbar plots can shift which points have error bars
82
- -----------------------------------------------------
87
+ Shifting errorbars
88
+ ------------------
83
89
Previously, `plt.errorbar() ` accepted a kwarg `errorevery ` such that the
84
90
command `plt.errorbar(x, y, yerr, errorevery=6) ` would add error bars to
85
91
datapoints `x[::6], y[::6] `.
@@ -101,8 +107,8 @@ scale, depending on used zoom. The number of ticks is controlled. Some minor
101
107
labels are displayed adaptively as sublabels in log scale. Formatting is adapted
102
108
for probabilities and the precision is adapts to the scale.
103
109
104
- rcParams for default axes title location and color
105
- --------------------------------------------------
110
+ rcParams for axes title location and color
111
+ ------------------------------------------
106
112
Two new rcParams have been added: ``axes.titlelocation `` denotes the default axes title
107
113
alignment, and ``axes.titlecolor `` the default axes title color.
108
114
0 commit comments