In [25]:
"""
This Graph is based on Circles
> Time
> Career progress over the years
> Color represents the Company and simultaneous responsibilities
"""
from bokeh.io import show, output_notebook
from bokeh.plotting import figure
output_notebook()
# create a new plot with default tools, using figure
TOOLS = "lasso_select, reset, resize, save, wheel_zoom, help"
p = figure(plot_width=700, plot_height=400, x_axis_type="datetime", tools = TOOLS)
# add a circle renderer with a size, color, and alpha
p.circle([1 ], [6 ], size=56, fill_color="green", alpha = 0.5)
p.circle([10 ], [9 ], size=56, fill_color="blue", alpha = 0.5)
p.circle([27 ], [24 ], size=56, fill_color="orange", alpha = 0.5)
p.circle([27 ], [12 ], size=56, fill_color="purple", alpha = 0.5)
p.circle([27 ], [27 ], size=56, fill_color="red", alpha = 0.5)
# Add TITLE
p.title = "The Banning Spree"
p.title_text_color = "firebrick"
p.title_text_font = "times"
p.title_text_font_style = "italic"
# Modify the axes
# change just some things about the x-axes
p.xaxis.axis_label = "Dates"
p.xaxis.axis_line_width = 3
p.xaxis.axis_line_color = "red"
# change just some things about the y-axes
p.yaxis.axis_label = "Social Impact"
p.yaxis.major_label_text_color = "orange"
p.yaxis.major_label_orientation = "vertical"
# change things on all axes
p.axis.minor_tick_in = -3
p.axis.minor_tick_out = 6
show(p) # show the results
In [ ]: