# importing numpy package
import numpy as np
# importing figure and show from
# bokeh.plotting module
from bokeh.plotting import figure, show
# using numpy package to
# create a list of 5 numbers
x = np.arange(5)
# y is stored with the square
# of the numbers in x
y = x**2
# z is storing 3 times the value
# of the elements in x
z = x*3
# storing 7 numbers in p between
# 1 to 20
p = np.linspace(1,20,7)
# storing 7 numbers in q between
# 1 to 10
q = np.linspace(1, 10, 7)
# storing 5 numbers in r between
# 1 to 30
r = np.linspace(1, 30, 5)
# creating 31 elements in a list
a = np.arange(31)
# creating an empty figure with specific plot
# width and height
fig = figure(plot_width = 600 , plot_height = 600)
# plotting the points in the form of
# circular glyphs
fig.circle(x, y, color = "red", size = 20)
# plotting the points in the form of
# square glyphs
fig.square(x, z, color = "blue", size = 15, alpha = 0.5)
# plotting the points in the form of
# hex glyphs
fig.hex(y, z, color = "green", size = 10, alpha = 0.7)
# drawing a line between the plotted points
fig.line(x, y, color = "green", line_width = 4)
# plotting the points in the form of
# inverted triangle glyph
fig.inverted_triangle(p, q, color = "yellow", size = 20, alpha = 0.4)
# plotting the points in the form of
# diamond glyphs
fig.diamond(x, r, color = "purple", size = 16, alpha = 0.8)
# plotting the points in the form of
# cross glyphs
fig.cross(a, a, size = 14)
# showing the above plot
show(fig)