I’m using bokeh 0.60 on a mac. I’ve tried on pc also. I’m using google chrome as the web browser and ipython notebook.
I’ve been trying to use y_axis_type = ‘log’ and the same for the x_axis. It appears that even though my data starts well below 1. Say .05 which is quite far in log space, bokeh’s default zoom starts the y_axis at 1. It get this right when not in log mode. I suspect the zoomer is not taking the log space into account. I’ve seen the bug in other plotting libs before. You can see in the screenshot that the output of the y.min() is ~ .05 which is much smaller than 1.0. If you pan the plot up you will see a considerable amount of data below 1.
This is the python export of the ipython notebook that produced this example:
from bokeh import plotting
import numpy as np
import matplotlib.pyplot as plt
cmap = plt.get_cmap(‘Spectral’)
x = np.exp(np.arange(100))
y = np.exp(np.random.normal(size = 100))
size = np.random.normal(size = 100)
size -= size.min()
color =cmap(np.random.normal(size = 100), bytes = True)
color = [’#%X%X%X’%tuple(c[:-1]) for c in color]
plotting.scatter(x,y, x_axis_type = ‘log’, y_axis_type = ‘log’, size = size*5, color = color)