Skip to content
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

Implement support for unit conversion in attribute limits in image viewer #2480

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

astrofrog
Copy link
Member

Work in progress

@astrofrog
Copy link
Member Author

The main thing to do at this point is to make sure that if it's just the units that change, we convert the units (including in 'Custom' mode)

@astrofrog
Copy link
Member Author

This mostly works but we now need to make sure that we use the native units when actually passing the limits to e.g. Matplotlib or bqplot.

@astrofrog
Copy link
Member Author

astrofrog commented Mar 28, 2024

Think this is ready to try out. To use, set .attribute_display_unit in the layer state.

@astrofrog astrofrog marked this pull request as ready for review March 28, 2024 14:25
@astrofrog astrofrog merged commit b3dfc2f into glue-viz:main Apr 16, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant