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
Autoscale does not work for artists added with Axes.add_artist #2202
Comments
I think this is by design. |
OK. Sounds like I've been trying to use it incorrectly. I was trying to lazily send artists to Clearer docs would be a big plus. I'd try to help, but I'm not clear on the function/intention myself: artists sent to
Are there really use cases where people don't want plots to rescale to include annotations? |
I found myself fighting with this issue today. I agree with @hohlraum: I think use-cases where people don't want plots to rescale to include annotations are very much the edge-case. |
Seconding @brianthelion, it took me half an hour to find out that axes with an Ellipse added by |
Internally Currently Please see PR #2822. |
Sorry just one question for completeness very related to this topic. How can I then paste an image at a specific position on a given axes (which also contains an image)? I mean I was using OffsetImage in combination with AnnotationBbox but I noticed their reference frames are independent and thus (e.g.) resizing only works for the outer axes. I need that both the image on the given axes and the image to be overlaid refer to the same pixels space. |
Hm, wouldn't it be easier to merge the underlying pixel representations and update with the joint data using |
Adding an artist through Axes.add_artist() does not update the data limits of the plot, so autoscale does not work.
The text was updated successfully, but these errors were encountered: