Skip to content
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

api docs for matplotlib.artist.get and matplotlib.artist.getp are exactly the same #2592

Closed
rtrwalker opened this issue Nov 14, 2013 · 1 comment

Comments

@rtrwalker
Copy link
Contributor

The api docs for matplotlib.artist.get and matplotlib.artist.getp are exactly the same

see
http://matplotlib.org/api/artist_api.html#matplotlib.artist.get
vs
http://matplotlib.org/api/artist_api.html#matplotlib.artist.getp

If both methods should be there the the get (without the 'p') should be called with get(obj) rather than getp(obj) as stated.

@pelson
Copy link
Member

pelson commented Jan 9, 2014

Technically yes, it has actually been implemented as an alias (https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/artist.py#L1228). This does break the "one good way to do something" rule (actually, so does getp altogether, but that is another issue) - perhaps we should just remove one from the docs...

I'm going to close this issue - but feel free to submit a PR if you're inclined to update the docs, and I'll happily merge.

Cheers!

Cheers!

@pelson pelson closed this as completed Jan 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants