-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
DOC : added caveat to Axes.add_artist #2822
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1449,6 +1449,11 @@ def add_artist(self, a): | |
| """ | ||
| Add any :class:`~matplotlib.artist.Artist` to the axes. | ||
|
|
||
| Artist added to the axes using this method are not taken into | ||
| account for auto-scaling. If you want autoscaling to take your | ||
| artists into account use :func:`~matplotlib.Axes.add_line` or | ||
| :func:`~matplotlib.Axes.add_patch`. | ||
|
Member
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 think this is misleading in three ways: first, because some collections also know how to change the dataLim; second, because there are other Artist subclasses; and third because the general advice should be, 'Use add_artist only for artists for which there is no dedicated "add" method; and if necessary, use a method such as |
||
|
|
||
| Returns the artist. | ||
| """ | ||
| a.set_axes(self) | ||
|
|
||
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.
'Artist' -> 'Artists'