Patch now fully supports using RGBA values for
its facecolor and edgecolor attributes, which enables faces and
edges to have different alpha values. If the
Patch object's alpha attribute is set to
anything other than None, that value will override any alpha-channel
value in both the face and edge colors. Previously, if
Patch had alpha=None, the alpha component
of edgecolor would be applied to both the edge and face.
The optional isRGB argument to
set_foreground() (and
the other GraphicsContext classes that descend from it) has been renamed to
isRGBA, and should now only be set to True if the fg color
argument is known to be an RGBA tuple.
For Patch, the capstyle used is now
butt, to be consistent with the default for most other objects, and to
avoid problems with non-solid linestyle appearing solid when using a
large linewidth. Previously, Patch used
capstyle='projecting'.
Path objects can now be marked as readonly by passing
readonly=True to its constructor. The built-in path singletons,
obtained through Path.unit* class methods return readonly paths.
If you have code that modified these, you will need to make a
deepcopy first, using either:
import copy
path = copy.deepcopy(Path.unit_circle())
path = Path.unit_circle()
The list at Path.NUM_VERTICES was replaced by a dictionary mapping
Path codes to the number of expected vertices at
NUM_VERTICES_FOR_CODE.
To support XKCD style plots, the matplotlib.path.cleanup_path
method's signature was updated to require a sketch argument. Users of
matplotlib.path.cleanup_path are encouraged to use the new
cleaned() Path method.
Data limits on a plot now start from a state of having "null"
limits, rather than limits in the range (0, 1). This has an effect
on artists that only control limits in one direction, such as
axes.Axes.axvline and axes.Axes.axhline, since their limits will no
longer also include the range (0, 1). This fixes some problems where the
computed limits would be dependent on the order in which artists
were added to the axes.
Fixed a bug in setting the position for the right/top spine with data
position type. Previously, it would draw the right or top spine at
+1 data offset.
In FancyArrow, the default arrow head
width, head_width, has been made larger to produce a visible
arrow head. The new value of this kwarg is head_width = 20 *
width.
It is now possible to provide number of levels + 1 colors in the case of
extend='both' for contourf (or just number of levels colors for an
extend value min or max) such that the resulting colormap's
set_under and set_over are defined appropriately. Any other number
of colors will continue to behave as before (if more colors are provided
than levels, the colors will be unused). A similar change has been applied
to contour, where extend='both' would expect number of levels + 2
colors.
A new keyword extendrect in colorbar() and
ColorbarBase allows one to control the shape
of colorbar extensions.
The extension of MultiCursor to both vertical
(default) and/or horizontal cursor implied that self.line is replaced
by self.vline for vertical cursors lines and self.hline is added
for the horizontal cursors lines.
On POSIX platforms, the matplotlib.cbook.report_memory function
raises NotImplementedError instead of OSError if the
ps command cannot be run.
The matplotlib.cbook.check_output function has been moved to
matplotlib.compat.subprocess.