question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not sure if bokeh has changed the default way they draw grid lines but I noticed that show_grid=True in opts no longer has any effect for me (holoviews 1.8.4 and bokeh 0.12.6). The following change fixes it but I wanted to make sure I wasn’t crazy first and confirm that someone else is having this problem. This doesn’t give much control over the grid shown though 😞

in holoviews/plotting/bokeh/element.ElementPlot._update_plot change

if not self.show_grid:
            plot.xgrid.grid_line_color=None
            plot.ygrid.grid_line_color=None

to

if self.show_grid:
            plot.xgrid.grid_line_color='black'
            plot.ygrid.grid_line_color='black'

Thoughts? Is there a better/easier way to get grid lines or should I raise a PR?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Mar 28, 2018

It is now possible to set an explicit gridstyle which is documented in the plotting with bokeh user guide.

0reactions
philippjfrcommented, Dec 12, 2017

Thanks, that’s helpful!

Read more comments on GitHub >

github_iconTop Results From Across the Web

grids — Bokeh 2.4.1 Documentation
grids¶. A guide renderer for displaying grid lines on Bokeh plots. ... Display horizontal or vertical grid lines at locations given by a...
Read more >
How do I remove grid lines from a Bokeh plot? - Stack Overflow
Have a look at the Bokeh line styling documentation. You can hide the lines by setting their grid_line_color to None . fig.xgrid.grid_line_color =...
Read more >
Bokeh - grid layout of plots - GeeksforGeeks
The layout functions let you build a grid of plots and widgets. You can nest as many rows, columns, or grids of plots...
Read more >
Styling Visual Attributes — Bokeh 0.10.0 documentation
In this section you will learn how to set the visual properties of grid lines and grid bands on Bokeh plots. Similar to...
Read more >
Python Bokeh grid plot - Educative.io
Bokeh is used for several kinds of plots namely scatter plots, grid plots, and line plots. Let's see how to make a simple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found