Alpine-DAV/ascent

Discrete Color Bar Improvements

Opened this issue · 1 comments

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