☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Color Mapper using Fisher-Jenks Natural Breaks

Community Support
lrdsouza
lrdsouza

Hi,
I am developing an application that generates several color maps. LinearColorMapper could be an interesting option for a color mapping task, however, LinearColorMapper generates equal intervals, for example: be the minimum value 1 and maximum value 10, for a palette of two colors we would have the range [1, 5) and [5, 10]. Therefore, when I use the LinearColorMapper it also generates “equal intervals” for the mapping, which is a problem for me, since I lose a lot of graphic information because several regions are framed in the same interval. However, the Fisher-Jenks algorithm generates better intervals for my problem, for example, the algorithm generates intervals [1, 7) and [7, 10] for the previous example. I would like to know if it is possible to pass intervals generated by the Fisher-Jenks algorithm for color mapping. Thank you all.

⌁   Link to post
p-himik
p-himik

I think you will have to create a custom color mapper model since none of the existing models allow you to specify the intervals explicitly.

⌁   Link to post
Bryan
Bryan

I think the recent ScanningColorMapper and EqHistColorMapper might be relevant as a starting reference for explicitly binned colormapping, but they don’t do exactly what you want AFAIK. It’s probably worth opening an issue to add something built-in for explicitly specified binned colormappings.

⌁   Link to post

End of archived discussion · Replies are disabled