-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotter.py
More file actions
35 lines (22 loc) · 697 Bytes
/
Copy pathplotter.py
File metadata and controls
35 lines (22 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import matplotlib.pyplot as plt
# import pandas as pd
from fitter import Fitter
class plotter(object):
def __init__(self,data):
self.data = data
def label(self):
plt.title("Minute Delays per Day")
plt.xlabel("Day")
plt.ylabel("Minutes of Delay")
plt.show()
def bar(self):
plt.bar(self.data.ix[:, 0], self.data.ix[:, 1])
def line(self):
plt.plot(self.data.ix[:, 0], self.data.ix[:, 1])
self.label()
def hist(self):
plt.title("Histogram with 100 bins")
plt.xlabel("Minutes of delay")
plt.ylabel("Number of occurences")
self.data["sum"].hist(bins=100)
plt.show()