4 Plot data from the Harry Potter data-set as a time-series
9 import matplotlib.pyplot as plt
10 import load_hp_data as hp
12 # We can play with styles:
14 plt.style.use('ggplot')
15 # To see available styles, type:
18 fig, ax = plt.subplots(1)
19 ax.plot(hp.columns['timestamp'], hp.columns['size'])
21 ax.set_ylabel('Size of the edit')
26 # Challenge: plot the relationship between edit size. Use
30 #delta_time1 = hp.columns['timestamp'][1] - hp.columns['timestamp'][0]
34 # You can give `plt.plot` more arguments to control the shape/size/color
35 # of the markers used. For example, try:
37 # ax.plot([1,2,3], [2,4,8], '.')
38 # ax.plot([1,2,3], [2,4,8], 'r.')