Created
May 16, 2021 20:03
-
-
Save LiorB-D/ac00d7749553a0bac2d1c6fc02acfda4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Imports | |
from bokeh.plotting import figure | |
from bokeh.io import curdoc | |
#Bokeh's Line Chart requires two arrays for the X and Y values | |
x = [1,2,3,4,5] | |
y = [4,6,2,4,3] | |
# Create a Figure - Bokeh's name for a basic plot ready to be graphed on | |
p = figure( | |
title='Simple Graph', | |
x_axis_label="X Axis", | |
y_axis_label="Y Axis" | |
) | |
p.line(x, y, line_width=2) # Create a line chart with line width 2 | |
curdoc().title = "Bokeh Server" #Web page Title | |
curdoc().add_root(p) #Add the figure to our webpage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment