☰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

Datetime axis inverted direction

Community Support
Lois_Rilo_Antelo
Lois_Rilo_Antelo

Hi all,

This is the first time I ask a question here, I’m quite new using bokeh so I hope someone can help me.

I am trying to invert the direction of the X axis when using datetime formatting, .i.e. display the most recent dates at the left side of the axis. For instance in the very simple sample I attach I would like to see the Feb 15th at the very left of the chart and the 12th at the right.

Could anyone give me some advice.

Thank you!

⌁   Link to post
Bryan
Bryan

Hi,

If you are using the default auto-ranging DataRange1d, which without more information I assume you are, then you can set the "flipped" property to True:

  plot.x_range.flipped = True

See,

  ranges — Bokeh 3.3.2 Documentation

Thanks,

Bryan

···

On Feb 12, 2019, at 08:55, lois.rilo@eficent.com wrote:

Hi all,

This is the first time I ask a question here, I'm quite new using bokeh so I hope someone can help me.

I am trying to invert the direction of the X axis when using datetime formatting, .i.e. display the most recent dates at the left side of the axis. For instance in the very simple sample I attach I would like to see the Feb 15th at the very left of the chart and the 12th at the right.

Could anyone give me some advice.

Thank you!

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/b56da95a-78b5-4b9a-abe1-5156e2c3e460%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<bokeh_plot_sample.png>

⌁   Link to post

End of archived discussion · Replies are disabled