-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
tutorial on how autoscaling works #17417
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
Comments
I would add:
|
Hey, I wanna work on this issue.. Could you please assign it to me?
means. |
@sarthakforwet If you are interested in working on this please do so and open a PR, we do not really "assign" work. Not all of the artists associated with the axes are taken into account when deciding what the data limits are, see matplotlib/lib/matplotlib/axes/_base.py Lines 2100 to 2127 in fb9e723
|
Hey @tacaswell . I know autoscaling is not supported by Collection objects such as EllipseCollection,LineCollection,PatchCollection etc. but certainly not getting the answer for what implicitly disables it.
Are you trying to say that in the first one describe for
By manually getting the same effect you mean setting xlim and ylim manually to scale according to data right ? |
Yes, but the tutorial should start at the
If you update the data in an artist you may need to "manually" update what the Axes thinks its data limits are
I was thinking what series of methods would the user need to call to replicate what autoscaling does when a new artist is added, but going through how to, given a set of artists, compute what the limits would be also sounds super useful! |
@tacaswell Okay and what implicitly disables autoscalling? |
@tacaswell I have made the tutorial but some things are not covered and I have searched but did not get how to do that so should i submit the PR for you to review it or first share it via other medium and finally submit a completed tutorial ? |
We try to run all of our contributions / review through github so please open a (draft) PR. Some of these things are not currently documented so part of the work here is to dig into the source and describe what it is doing ;) |
I have two thoughts to add
|
Originally posted by @mwaskom in #17331 (comment)
We need a long-form tutorial like https://matplotlib.org/tutorials/intermediate/imshow_extent.html for autoscaling. This needs to cover
The text was updated successfully, but these errors were encountered: