-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
MNT: unify code path of set, update, setp #5599
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
mdboom
merged 7 commits into
matplotlib:v2.0.x
from
tacaswell:mnt_unify_artist_update-set
Dec 14, 2015
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
63f4437
MNT: unify code path of set, update, setp
tacaswell 3401a5d
MNT: move helper function into update
tacaswell c458cbc
DOC: more minor API constraints
tacaswell bba3ae2
REV: do not sort by key in Artist.update
tacaswell 0ea5fff
MNT: use ordereddict to order args in setp
tacaswell 790d909
ENH: add property precedence
tacaswell 1905607
DOC: fix typos
tacaswell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
REV: do not sort by key in Artist.update
restore old behavior
- Loading branch information
commit bba3ae28a0f513e0eb18247d6b587629fa10b986
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,14 @@ The methods `matplotlib.artist.Artist.set`, | |
now use a common codepath to look up how to update the given artist | ||
properties (either using the setter methods or an attribute/property). | ||
|
||
The behavior of `matplotlib.Artist.update` is slightly changed to now | ||
sort by key name and returns a list of the returned values from the | ||
setter methods to avoid changing the API of | ||
`matplotlib.Artist.set` and `matplotlib.artist.setp`. | ||
The behavior of `matplotlib.Artist.update` is slightly changed to | ||
returna a list of the returned values from the setter methods to avoid | ||
changing the API of `matplotlib.Artist.set` and | ||
`matplotlib.artist.setp`. | ||
|
||
The keys passed into `matplotlib.Artist.update` are now converted to | ||
all lower case before being processed, to match the behavior of | ||
lower case before being processed to match the behavior of | ||
`matplotlib.Artist.set` and `matplotlib.artist.setp`. This should not | ||
break any user code because there are no set methods with capitals in | ||
the names, however going forward this puts a constraint naming properties. | ||
the names, however going forward this puts a constraint naming | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. constraint on naming... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I swear English is my native language... |
||
properties. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returna -> return