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 Color Bar Improvements #1335

Open
nicolemarsaglia opened this issue Jul 18, 2024 · 1 comment
Open

Discrete Color Bar Improvements #1335

nicolemarsaglia opened this issue Jul 18, 2024 · 1 comment

Comments

@nicolemarsaglia
Copy link
Contributor

MIR gave us a pseudo-discrete color bar that forces the ticks to be whole numbers, but overall still uses a continuous color table.

This can be improved but will most likely be finnicky, hair-pulling work playing around with viskores (vtk-m) color table options.

As of now it can handle material ids that do not start at one, but does not eliminate nonexistent material ids (second image: the 2-8 should only be the even numbers). Nor will it grow the color bar if there are a lot of materials (third image).

tout_mir_offset_discrete_colorbar
tout_mir_discrete_color_bar_every_other_index
tout_mir_discrete_toomanytics

@nicolemarsaglia
Copy link
Contributor Author

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

No branches or pull requests

2 participants