from bokeh.plotting import figure, show
from bokeh.io import output_file
output_file("line.html")
p = figure(title="Simple line example", x_axis_label='x', y_axis_label='y')
p.line([1, 2, 3, 4], [6, 7, 2, 4], legend_label="Temp.", line_width=2)

# Remove background
p.background_fill_color = None
p.border_fill_color = None

# Remove grid lines
p.xgrid.grid_line_color = None
p.ygrid.grid_line_color = None

# Remove axis
p.axis.visible = False

show(p)
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.