Log scale graph will be blank if output_backend is webgl #7087
ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)
OS: Windows 7 Pro SP1 x64
Description of expected behavior and the observed behavior
Log scale grpah will be blank if output_backend is webgl
Complete, minimal, self-contained example code that reproduces the issue
# just copy from http://bokeh.pydata.org/en/latest/docs/gallery/logaxis.html import numpy as np from bokeh.io import output_file, show from bokeh.plotting import figure x = np.linspace(0.1, 5, 100) p = figure(title="log axis example", y_axis_type="log", y_range=(0.001, 10**22), output_backend='webgl') p.line(x, np.sqrt(x), legend="y=sqrt(x)", line_color="tomato", line_dash="dotdash") p.line(x, x, legend="y=x") p.circle(x, x, legend="y=x") p.line(x, x**2, legend="y=x**2") p.circle(x, x**2, legend="y=x**2", fill_color=None, line_color="olivedrab") p.line(x, 10**x, legend="y=10^x", line_color="gold", line_width=2) p.line(x, x**x, legend="y=x^x", line_dash="dotted", line_color="indigo", line_width=2) p.line(x, 10**(x**2), legend="y=10^(x^2)", line_color="coral", line_dash="dashed", line_width=2) p.legend.location = "top_left" p.xaxis.axis_label = 'Domain' p.yaxis.axis_label = 'Values (log scale)' output_file("logplot.html", title="log plot example") show(p) # open a browser
no error or warning shown
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered:
@fgoinai great thanks for the extra info. Just by way of setting expectations, the previous maintainer of webgl in Bokeh is no longer actively contributing. I think realistically we will need to re-build webgl from the ground up on a more stable base such as ReGL, but that's obviously a big undertaking, and it will probably not happen for some time (definitely not before 1.0, so not until some time next year). For now, if webgl is not working in your particular usage then I can only suggest falling back to standard (default) canvas.
I came with a similar problem, my graph is blank even if not using a log scale.. The output is generated, if I used box zoom, the points will be shown..
Here is the sample code:
But if I delete " output_backend="webgl" " the graph shows.
Thanks a lot.