Hi,
I wrote a test script to display some data. Here is the script:
from bokeh.plotting import figure, output_file, show
x = [1, 10, 20, 30, 40, 50, 100, 200, 300]
y = [21939, 119904, 165837, 186567, 181159, 165289, 177935, 149031, 141843]
ymin = min(y)
ymax = max(y)
p = figure(
#tools=“save”, y_axis_type=“log”, y_range=[ymin, ymax], title=“test”,
tools=“save”, y_axis_type=“log”, title=“test”,
x_axis_label=‘Number of client’, y_axis_label=‘Requests per second’
)
output_file(“test.html”)
p.line(x, y, legend=“test”, line_color=“red”, line_width=2)
p.circle(x, y, size=6, legend=“test”, line_color=“red”, fill_color=“red”)
show the results
show(p)
``
After the executing, I find the y-axis show:
5.000e+4
1.000e+5
1.500e+5
but distance between them in the chart are not same, how can I set them as fixed same distance, like x-axis?
Thanks,
Linbo