import numpy as np
from bokeh.plotting import *

import numpy as np

from bokeh.plotting import *

N = 100

x = np.linspace(0.1, 5, N)

output_server("logplot")

p = figure(title="log axis example",
    y_axis_type="log", y_range=[0.001, 10**22])

p.line(x, np.sqrt(x), line_dash="dotdash",
    line_color="tomato", legend="y=sqrt(x)")

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, fill_color=None,
    line_color="olivedrab", legend="y=x**2")

p.line(x, 10**x, line_color="gold",
    line_width=2, legend="y=10^x")

p.line(x, x**x, line_dash="dotted", line_color="indigo",
    line_width=2, legend="y=x^x")

p.line(x, 10**(x**2), line_color="coral", line_dash="dashed",
    line_width=2, legend="y=10^(x^2)")


show(p)  # open a browser