Hello all,
I’m having trouble getting bokeh to produce a log plot correctly. I was able to reproduce my initial error in the following piece of code:
from bokeh.plotting import figure, output_file, show
import random
x = [x/2-2 for x in range(100)]
y = [random.gauss(.1, .05) for i in range(len(x))]
output_file(“log.html”)
create a new plot with a log axis type
p = figure(plot_width=400, plot_height=400,
y_axis_type=“log”, y_range=(10**-4, 10**0))
print y
#p.line(x, y, line_width=2)
p.circle(x, y, size=8)
show(p)
Bokeh fails to visualize the y-axis the example able and a personal sample where the y-axis is filled with data ranging between 10**-4 and 10**2.
Any help would be appreciated.