☰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

X axis label with bokeh plotting

Community Support
Gabriel_B
Gabriel_B

@Bryan, sorry for that. I’m will try to explain with more detail.

If you see the chart , the x axis is divided just in numbers (1,2,3,4 and so on…) but actually the three curves are values of water cut , production and Gas of different oil wells . So I have to replace the mumbers with the names of the wells.

So , in order to acomplish that, I generate a dict that you see in the script , so then apply that "major level overrides " but it doesn’t work .

Sorry for my English . It is not the best … I know

⌁   Link to post
Bryan
Bryan

I agree with @gmerritt123 — if each x-coordinate represents a different well, then this is really categorical data, so categorical axis would be the most appropriate choice (and immediately solve your labeling need in the proper way). [1]

If you really want to use numeric coordinates, then I would need a complete Minimal Reproducible Example that I could actually run directly in order to investigate what the usage issue with the tick overrides is.


  1. And as an aside: If this is categorical data, then drawing lines between the categories is also a dubious thing to do. The lines have no real meaning since a categorical space is not a metric space. It would be more sensible to draw markers at each point, or possibly vertical bars. ↩︎

⌁   Link to post

End of archived discussion · Replies are disabled