-
Notifications
You must be signed in to change notification settings - Fork 38
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
Disable resetting of y_min/y_max in layer artist #247
Conversation
Codecov Report
@@ Coverage Diff @@
## main #247 +/- ##
==========================================
- Coverage 88.63% 88.58% -0.06%
==========================================
Files 82 82
Lines 4093 4136 +43
==========================================
+ Hits 3628 3664 +36
- Misses 465 472 +7
Continue to review full report at Codecov.
|
If it is somehow needed elsewhere, Jdaviz still need an option to turn it off. |
I can confirm that this also fixes the issue downstream at spacetelescope/jdaviz#760 , in addition to spacetelescope/jdaviz#335 |
@camipacifici reported that this might have broken the "Home" button, as pressing Home now does not reset Y-axis zoom in Specviz, though it works fine for Imviz. |
877e749
to
f6a9d95
Compare
I've updated this to a point where I think I'd be happy to merge. I've also fixed the Home button. At this point it would be helpful if someone could test this out with jdaviz/specviz though? |
I just confirmed that selecting a subset in the profile viewer no longer resets the y-axis zoom, and that the home button now properly resets both axes again in the profile viewer. Looks good! |
I'll have to double check that the markers no longer reset Imviz zoom/pan, unless someone gets to it first. |
When using mosviz, selecting a new row does not change the Y-axis of the spectrum viewer at all. The scale of the first row persists for all the rest, even if the range is much different. |
My comment at #247 (comment) is no longer true. This does not prevent pan/zoom reset in Imviz no more when markers are added. Not sure what changed. But the Imviz issue is not important to fix right now. |
This PR never had any impact on the image viewer so I wouldn't expect it to fix your issue @pllim - but if you open a separate issue I can look into it |
It did at one point... 😆 But don't worry about Imviz for now. |
But since you asked, I did open an issue at spacetelescope/jdaviz#760 |
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.
This actually breaks jdaviz... See spacetelescope/jdaviz#874 . Maybe we need this is a very localized section of Jdaviz only...
I am working on this in glue-viz/glue#2233 |
c08d94c
to
bb6e890
Compare
I need to figure out if this code is still needed, but for now it seems it definitely isn't for specviz, so this branch can be used with specviz to avoid rescaling all the time.