-
-
Notifications
You must be signed in to change notification settings - Fork 608
Add "imshow" as an option for autoalign plotting of maps #6812
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
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hey @ayshih, can you explain "The trick is that we'd have to add a clip path to the image produced by imshow() because it can unnecessarily extrapolate data." |
Look at the middle panel of the figure in this comment, and then the addition of a clip path in this later comment. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hello, what will be the clip path for a map object? Any resources on this will be helpful.
This clip path from astropy/astropy#14420 (comment) don't seem to be general for all? |
Those are correctly the pixel coordinates for the four corners of any map. However, the approach of |
Thank you for the response! "pixel-to-pixel transformation between the map's WCS and the axes's WCS is affine" how do I exactly go on do this, my rough guess is to check if |
Uh oh!
There was an error while loading. Please reload this page.
For autoalign plotting of maps, our current implementation uses
pcolormesh()
. However, if the pixel-to-pixel transformation between the map's WCS and the axes's WCS is affine (i.e., just scaling and rotation), usingimshow(transform=...)
would have much better performance thanpcolormesh()
. The trick is that we'd have to add a clip path to the image produced byimshow()
because it can unnecessarily extrapolate data.We should add
imshow()
as an option for autoalign plotting.The text was updated successfully, but these errors were encountered: