Skip to content
Advertisement

Tag: colorbar

Colorbar and its range shared between two plots

I adapted this code (https://stackoverflow.com/a/73099652/2369957) that demonstrates how to share a colorbar and its range for two plots, but it doesn’t seem to work when the range of the two plots are different – in the case of the posted code, the plots have the same range (half-open interval [0.0, 1.0)). I generated two plots with different ranges and the

Bokeh: how to custom scale of ColorBar?

I make a figure (empty to simplify the code but I will add many elements), and a ColorBar to designate the color of different elements. Now the color bar gives this result: But I’m not satisfied because I’d like to have a different scale of colors where all positive values are red and all negative values are green. Moreover, I’d

Shrink/adjust the colorbar inside the plot

I am trying to shrink a colorbar, which is positioned inside the plot. When I position it outside of the plot (i. e. pad=0.05), it works just fine. Here’s a MWE: I have tried both shrink and fraction but none of them seem to do the trick. I am attaching the output. Any help is greatly appreciated! Answer Your basic

Advertisement