axis orientation/origin in bokeh

Is it possible in bokeh to have plot for which the x axis, goes from right to left, i.e. having the origin at the bottom right ?

Hi,

If you are using the default "data range" to automatically set range start/end, then there is a "flipped" property you can set:

  http://bokeh.pydata.org/en/latest/docs/reference/models/ranges.html#bokeh.models.ranges.DataRange1d.flipped

Otherwise if you are setting explicit range start/end, you need to swap them. e.g

  p = figure(x_range=(10, 0))

will have 0 on the right.

Thanks,

Bryan

···

On Jun 19, 2017, at 05:16, [email protected] wrote:

Is it possible in bokeh to have plot for which the x axis, goes from right to left, i.e. having the origin at the bottom right ?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/237b2595-4d0c-4c90-9078-695647f73543%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.