Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fix x_axis and fill under curve Bokeh

Tags:

python

bokeh

I am trying to configure my Bokeh plots in Python such that they look a bit nicer. For example, is there a way to fix the maximum zoom out? Such that Bokeh cannot zoom out more than what is specified by the x-axis? E.g. look at bokeh example, and especially "Datetime axes". I would like to fix the axis size so that you cannot zoom out more than the initial x axis is wide.

Another question; is there a way to fill an area under a curve in a specified color? Like in the figure USDSEK. I can provide code, but I don't think it's necessary for the problem at hand.

like image 810
Tingiskhan Avatar asked Dec 14 '25 18:12

Tingiskhan


1 Answers

UPDATED for 2019:

Bokeh now supports "directed areas" (which can also be stacked) see e.g.

https://docs.bokeh.org/en/latest/docs/gallery/stacked_area.html

like image 188
bigreddot Avatar answered Dec 16 '25 15:12

bigreddot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!