Good day,
I have the following colorbar for my Bokeh chart.
My code for the colorbar is as follows:
palette = brewer['Greys'][8]
palette = palette[::-1]
formatter = PrintfTickFormatter(format='%1.0f')
color_mapper = LinearColorMapper(palette = palette, low = 0, nan_color = '#d9d9d9')
color_bar = ColorBar(color_mapper=color_mapper, label_standoff=8,width = 500, height = 20,
border_line_color=None,location = (0,0), orientation = 'horizontal', formatter = formatter)
I would like to make a couple of changes and was wondering if anyone can assist me with any of the following:
- Add a border to the colorbar so that one can see where "0" starts,
- Get the tick marks to line up with the colors,
- Have the final value of the colorbar included (at the very end of the bar there needs to be an ending value,
- Change the format of the ticks from e.g. 200000 to 200k.
Thank you to anyone who can assist me! Have a great day.