@@ -17,10 +17,8 @@ For new features that were added to matplotlib, please see
17
17
Changes in 1.3.x
18
18
================
19
19
20
- * On Linux, the user-specific `matplotlibrc ` configuration file is now
21
- located in `~/.config/matplotlib/matplotlibrc ` to conform to the
22
- `XDG Base Directory Specification
23
- <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html> `_.
20
+ Code removal
21
+ ------------
24
22
25
23
* The following items that were deprecated in version 1.2 or earlier
26
24
have now been removed completely.
@@ -69,6 +67,9 @@ Changes in 1.3.x
69
67
- `widgets.HorizontalSpanSelector ` has been removed. Use
70
68
`widgets.SpanSelector ` instead.
71
69
70
+ Code deprecation
71
+ ----------------
72
+
72
73
* The CocoaAgg backend has been deprecated, with the possibility for
73
74
deletion or resurrection in a future release.
74
75
@@ -88,6 +89,47 @@ Changes in 1.3.x
88
89
- `points_in_path ` -> `path.Path.contains_points `
89
90
- `clip_path_to_rect ` -> `path.Path.clip_to_bbox `
90
91
92
+ * `matplotlib.colors.normalize ` and `matplotlib.colors.no_norm ` have
93
+ been deprecated in favour of `matplotlib.colors.Normalize ` and
94
+ `matplotlib.colors.NoNorm ` respectively.
95
+
96
+ * The `ScalarMappable ` class' `set_colorbar ` is now
97
+ deprecated. Instead, the
98
+ :attr: `matplotlib.cm.ScalarMappable.colorbar ` attribute should be
99
+ used. In previous matplotlib versions this attribute was an
100
+ undocumented tuple of ``(colorbar_instance, colorbar_axes) `` but is
101
+ now just ``colorbar_instance ``. To get the colorbar axes it is
102
+ possible to just use the
103
+ :attr: `~matplotlib.colorbar.ColorbarBase.ax ` attribute on a colorbar
104
+ instance.
105
+
106
+ * The `~matplotlib.mpl ` module is now deprecated. Those who relied on this
107
+ module should transition to simply using ``import matplotlib as mpl ``.
108
+
109
+ Code changes
110
+ ------------
111
+
112
+ * :class: `~matplotlib.patches.Patch ` now fully supports using RGBA values for
113
+ its ``facecolor `` and ``edgecolor `` attributes, which enables faces and
114
+ edges to have different alpha values. If the
115
+ :class: `~matplotlib.patches.Patch ` object's ``alpha `` attribute is set to
116
+ anything other than ``None ``, that value will override any alpha-channel
117
+ value in both the face and edge colors. Previously, if
118
+ :class: `~matplotlib.patches.Patch ` had ``alpha=None ``, the alpha component
119
+ of ``edgecolor `` would be applied to both the edge and face.
120
+
121
+ * The optional ``isRGB `` argument to
122
+ :meth: `~matplotlib.backend_bases.GraphicsContextBase.set_foreground ` (and
123
+ the other GraphicsContext classes that descend from it) has been renamed to
124
+ ``isRGBA ``, and should now only be set to ``True `` if the ``fg `` color
125
+ argument is known to be an RGBA tuple.
126
+
127
+ * For :class: `~matplotlib.patches.Patch `, the ``capstyle `` used is now
128
+ ``butt ``, to be consistent with the default for most other objects, and to
129
+ avoid problems with non-solid ``linestyle `` appearing solid when using a
130
+ large ``linewidth ``. Previously, :class: `~matplotlib.patches.Patch ` used
131
+ ``capstyle='projecting' ``.
132
+
91
133
* `Path ` objects can now be marked as `readonly ` by passing
92
134
`readonly=True ` to its constructor. The built-in path singletons,
93
135
obtained through `Path.unit* ` class methods return readonly paths.
@@ -104,46 +146,33 @@ Changes in 1.3.x
104
146
Deep copying a `Path ` always creates an editable (i.e. non-readonly)
105
147
`Path `.
106
148
107
- * matplotlib.colors.normalize and matplotlib.colors.no_norm have been
108
- deprecated in favour of matplotlib.colors.Normalize and
109
- matplotlib.colors.NoNorm respectively.
110
-
111
- * The `font.* ` rcParams now affect only text objects created after the
112
- rcParam has been set, and will not retroactively affect already
113
- existing text objects. This brings their behavior in line with most
114
- other rcParams.
149
+ * The list at ``Path.NUM_VERTICES `` was replaced by a dictionary mapping
150
+ Path codes to the number of expected vertices at
151
+ :attr: `~matplotlib.path.Path.NUM_VERTICES_FOR_CODE `.
115
152
116
153
* To support XKCD style plots, the :func: `matplotlib.path.cleanup_path `
117
154
method's signature was updated to require a sketch argument. Users of
118
155
:func: `matplotlib.path.cleanup_path ` are encouraged to use the new
119
156
:meth: `~matplotlib.path.Path.cleaned ` Path method.
120
157
121
- * The list at ``Path.NUM_VERTICES `` was replaced by a dictionary mapping
122
- Path codes to the number of expected vertices at
123
- :attr: `~matplotlib.path.Path.NUM_VERTICES_FOR_CODE `.
158
+ * Data limits on a plot now start from a state of having "null"
159
+ limits, rather than limits in the range (0, 1). This has an effect
160
+ on artists that only control limits in one direction, such as
161
+ `axvline ` and `axhline `, since their limits will not longer also
162
+ include the range (0, 1). This fixes some problems where the
163
+ computed limits would be dependent on the order in which artists
164
+ were added to the axes.
124
165
125
166
* Fixed a bug in setting the position for the right/top spine with data
126
167
position type. Previously, it would draw the right or top spine at
127
168
+1 data offset.
128
169
129
- * The ScalarMappable class' set_colorbar is now deprecated. Instead, the
130
- :attr: `matplotlib.cm.ScalarMappable.colorbar ` attribute should be used.
131
- In previous matplotlib versions this attribute was an undocumented tuple
132
- of ``(colorbar_instance, colorbar_axes) `` but is now just
133
- ``colorbar_instance ``. To get the colorbar axes it is possible to just use
134
- the :attr: `~matplotlib.colorbar.ColorbarBase.ax ` attribute on a colorbar
135
- isntance.
136
-
137
- * In :class: `~matplotlib.patches.FancyArrow `, the default arrow head width,
138
- ``head_width ``, has been made larger to produce a visible arrow head. The new
139
- value of this kwarg is ``head_width = 20 * width ``.
170
+ * In :class: `~matplotlib.patches.FancyArrow `, the default arrow head
171
+ width, ``head_width ``, has been made larger to produce a visible
172
+ arrow head. The new value of this kwarg is ``head_width = 20 *
173
+ width ``.
140
174
141
- * Removed call of :meth: `~matplotlib.axes.Axes.grid ` in
142
- :meth: `~matplotlib.pyplot.plotfile `. To draw the axes grid, set the
143
- ``axes.grid `` rcParam to *True *, or explicitly call
144
- :meth: `~matplotlib.axes.Axes.grid `.
145
-
146
- * It is now posible to provide ``number of levels + 1 `` colors in the case of
175
+ * It is now possible to provide ``number of levels + 1 `` colors in the case of
147
176
`extend='both' ` for contourf (or just ``number of levels `` colors for an
148
177
extend value ``min `` or ``max ``) such that the resulting colormap's
149
178
``set_under `` and ``set_over `` are defined appropriately. Any other number
@@ -156,9 +185,6 @@ Changes in 1.3.x
156
185
:class: `~matplotlib.colorbar.ColorbarBase ` allows one to control the shape
157
186
of colorbar extensions.
158
187
159
- * The `~matplotlib.mpl ` module is now deprecated. Those who relied on this
160
- module should transition to simply using ``import matplotlib as mpl ``.
161
-
162
188
* The extension of :class: `~matplotlib.widgets.MultiCursor ` to both vertical
163
189
(default) and/or horizontal cursor implied that ``self.line `` is replaced
164
190
by ``self.vline `` for vertical cursors lines and ``self.hline `` is added
@@ -171,26 +197,23 @@ Changes in 1.3.x
171
197
* The :func: `matplotlib.cbook.check_output ` function has been moved to
172
198
:func: `matplotlib.compat.subprocess `.
173
199
174
- * :class: `~matplotlib.patches.Patch ` now fully supports using RGBA values for
175
- its ``facecolor `` and ``edgecolor `` attributes, which enables faces and
176
- edges to have different alpha values. If the
177
- :class: `~matplotlib.patches.Patch ` object's ``alpha `` attribute is set to
178
- anything other than ``None ``, that value will override any alpha-channel
179
- value in both the face and edge colors. Previously, if
180
- :class: `~matplotlib.patches.Patch ` had ``alpha=None ``, the alpha component
181
- of ``edgecolor `` would be applied to both the edge and face.
200
+ Configuration and rcParams
201
+ --------------------------
182
202
183
- * The optional ``isRGB `` argument to
184
- :meth: `~matplotlib.backend_bases.GraphicsContextBase.set_foreground ` (and
185
- the other GraphicsContext classes that descend from it) has been renamed to
186
- ``isRGBA ``, and should now only be set to ``True `` if the ``fg `` color
187
- argument is known to be an RGBA tuple.
203
+ * On Linux, the user-specific `matplotlibrc ` configuration file is now
204
+ located in `~/.config/matplotlib/matplotlibrc ` to conform to the
205
+ `XDG Base Directory Specification
206
+ <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html> `_.
188
207
189
- * For :class: `~matplotlib.patches.Patch `, the ``capstyle `` used is now
190
- ``butt ``, to be consistent with the default for most other objects, and to
191
- avoid problems with non-solid ``linestyle `` appearing solid when using a
192
- large ``linewidth ``. Previously, :class: `~matplotlib.patches.Patch ` used
193
- ``capstyle='projecting' ``.
208
+ * The `font.* ` rcParams now affect only text objects created after the
209
+ rcParam has been set, and will not retroactively affect already
210
+ existing text objects. This brings their behavior in line with most
211
+ other rcParams.
212
+
213
+ * Removed call of :meth: `~matplotlib.axes.Axes.grid ` in
214
+ :meth: `~matplotlib.pyplot.plotfile `. To draw the axes grid, set the
215
+ ``axes.grid `` rcParam to *True *, or explicitly call
216
+ :meth: `~matplotlib.axes.Axes.grid `.
194
217
195
218
Changes in 1.2.x
196
219
================
0 commit comments