I would like to change color only for origin grid lines show in the image below.
There’s a few possibilities:
-
Manually add two new
Grid
instances to the plot, configured with fixed tickers that only generate tick locations for zero. You can configure the grid line color and width, etc on the new grids. -
Use
Span
annotations instead: Adding annotations — Bokeh 2.4.3 Documentation (note hard-versioned link to 2.4.3 docs, the User’s Guide is about to be completely restructured for upcoming 3.0) -
You could also move the axes themselves, if that is appropriate, see
1 Like
Thank you,
I used Span annotations.
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.