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

Skip to content

Added the "cleared" method to Path, and updated the path module's documentation. #2011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ Changes in 1.3.x
existing text objects. This brings their behavior in line with most
other rcParams.

* To support XKCD style plots, the :func:`matplotlib.path.cleanup_path`
method's signature was updated to require a sketch argument. Users of
:func:`matplotlib.path.cleanup_path` are encouraged to use the new
:meth:`~matplotlib.path.Path.cleaned` Path method.

* The list at ``Path.NUM_VERTICES`` was replaced by a dictionary mapping
Path codes to the number of expected vertices at
:attr:`~matplotlib.path.Path.NUM_VERTICES_FOR_CODE`.

* 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.
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ def __init__(self, norm=None, cmap=None):
norm = colors.Normalize()

self._A = None;
#; The Normalization instance of this ScalarMappable.
#: The Normalization instance of this ScalarMappable.
self.norm = norm
#; The Colormap instance of this ScalarMappable.
#: The Colormap instance of this ScalarMappable.
self.cmap = get_cmap(cmap)
self.colorbar = None
self.update_dict = {'array': False}
Expand Down
Loading