By setting a parameter n_colors to the number of class IDs, I limited the number of colors that appear on the colormap. I also had to remove the clim key in the TEN_CLASS_VIS_KWARGS and TWENTY_CLASS_VIS_KWARGS since those were making the labels unnaturally group together. As seen below, the labels are equally spaced from each other.
This current method takes colors that are sampled from even intervals of size of N from the color map (for example tab20), not the first N colors from the color map.
This is what a mesh would look like with the current changes (taken from render_labels.ipynb)
Closes #59 .
By setting a parameter n_colors to the number of class IDs, I limited the number of colors that appear on the colormap. I also had to remove the clim key in the TEN_CLASS_VIS_KWARGS and TWENTY_CLASS_VIS_KWARGS since those were making the labels unnaturally group together. As seen below, the labels are equally spaced from each other.
This current method takes colors that are sampled from even intervals of size of N from the color map (for example tab20), not the first N colors from the color map.
This is what a mesh would look like with the current changes (taken from render_labels.ipynb)