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

Discrete colorbar for plot_pixels function #218

Closed
nevencaplar opened this issue Feb 22, 2024 · 2 comments · Fixed by #228
Closed

Discrete colorbar for plot_pixels function #218

nevencaplar opened this issue Feb 22, 2024 · 2 comments · Fixed by #228

Comments

@nevencaplar
Copy link
Member

plot_pixels function that creates plot such as

Opera Snapshot_2024-02-22_095656_github com

should have discrete colorbar, as the values are always integers.

@delucchi-cmu
Copy link
Contributor

That's a totally reasonable request. However.

This is fully generated within the healpy.mollview visualization method. We don't have a ton of control over how the color bar is rendered. Also, with increased scrutiny around #53, we may have to re-implement our sky plotting.

@nevencaplar
Copy link
Member Author

It this the function https://healpy.readthedocs.io/en/latest/generated/healpy.visufunc.mollview.html that you are referencing?If yes, it seems that we can pass an argument to it that would specify a discreet colormap (cmap argument)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants