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

Feature request: colourbar with numerical scale #157

Open
bmiszalski opened this issue May 20, 2024 · 2 comments
Open

Feature request: colourbar with numerical scale #157

bmiszalski opened this issue May 20, 2024 · 2 comments
Labels

Comments

@bmiszalski
Copy link
Contributor

bmiszalski commented May 20, 2024

Hi all,
A feature that would be really useful would be the ability to show a colorbar and scale (even if min/max values) like e.g.
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.colorbar.html

Some example usage would be to plot velocity maps on top of galaxies, where the maps are the outputs of IFU surveys. The colourbar would show the min/max velocities.
It would be nice if it could make use of BUNIT in the FITS header if possible (e.g. to display the units somewhere).

Please see attached images and html.
This uses some SAMI DR3 data and the fits2hips service to create an overlay that is adjustable via a transparency slider.
The code is a little old now (uses Aladin Lite v2), but should be functional.

HTML source for an example and screenshots available here: https://cloud.datacentral.org.au/s/Hc0zbCdu8tmDABd

Best regards,
Brent.

Screenshot 2024-05-20 at 3 18 35 pm Screenshot 2024-05-20 at 3 18 23 pm
@bmiszalski
Copy link
Contributor Author

I've also added some Python code to the above link.

@bmiszalski
Copy link
Contributor Author

bmiszalski commented May 20, 2024

This is a mock up of what it might look like:
colourbar

@tboch tboch added the feature label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants