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

Skip to content

Commit 24a635f

Browse files
committed
Merge pull request #2011 from pelson/api_changes_sketch
Added the "cleared" method to Path, and updated the path module's documentation.
2 parents 99d4e40 + 855d343 commit 24a635f

File tree

3 files changed

+172
-91
lines changed

3 files changed

+172
-91
lines changed

doc/api/api_changes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ Changes in 1.3.x
104104
existing text objects. This brings their behavior in line with most
105105
other rcParams.
106106

107+
* To support XKCD style plots, the :func:`matplotlib.path.cleanup_path`
108+
method's signature was updated to require a sketch argument. Users of
109+
:func:`matplotlib.path.cleanup_path` are encouraged to use the new
110+
:meth:`~matplotlib.path.Path.cleaned` Path method.
111+
112+
* The list at ``Path.NUM_VERTICES`` was replaced by a dictionary mapping
113+
Path codes to the number of expected vertices at
114+
:attr:`~matplotlib.path.Path.NUM_VERTICES_FOR_CODE`.
115+
107116
* Fixed a bug in setting the position for the right/top spine with data
108117
position type. Previously, it would draw the right or top spine at
109118
+1 data offset.

lib/matplotlib/cm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ def __init__(self, norm=None, cmap=None):
189189
norm = colors.Normalize()
190190

191191
self._A = None;
192-
#; The Normalization instance of this ScalarMappable.
192+
#: The Normalization instance of this ScalarMappable.
193193
self.norm = norm
194-
#; The Colormap instance of this ScalarMappable.
194+
#: The Colormap instance of this ScalarMappable.
195195
self.cmap = get_cmap(cmap)
196196
self.colorbar = None
197197
self.update_dict = {'array': False}

0 commit comments

Comments
 (0)