-
Notifications
You must be signed in to change notification settings - Fork 0
/
e10-2015.py
30 lines (28 loc) · 960 Bytes
/
e10-2015.py
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
"""e10 2015 graph"""
def graph_e10_2015():
"""show graph of gas e10 price in year 2015 by min, avg, max"""
import plotly.plotly as py
import plotly.graph_objs as go
py.sign_in('littlejab', 'yblima8sc3')
chart_min = go.Bar(
x=['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15'],
y=[28.04, 28.47, 29.35, 28.1, 29.08, 29.57],
name='Min'
)
chart_avg = go.Bar(
x=['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15'],
y=[28.04, 28.53, 29.36, 28.11, 29.08, 29.59],
name='Average'
)
chart_max = go.Bar(
x=['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15'],
y=[28.04, 28.67, 29.39, 28.17, 29.13, 29.64],
name='Max'
)
data = [chart_min, chart_avg, chart_max]
layout = go.Layout(
barmode='group'
)
fig = go.Figure(data=data, layout=layout)
plot_url = py.plot(fig, filename='E10 2015')
graph_e10_2015()