plot-series


Plot Series


In [ ]:
# Import library and create instance
from bayeos.cli import SimpleClient
import matplotlib.pyplot as plt
%matplotlib inline

In [ ]:
# Get data 
bayeos = SimpleClient()
# Connect to server
bayeos.connect("http://bayeos.bayceer.uni-bayreuth.de/BayEOS-Server/XMLServlet","gast","gast")
# Get record 
(header, data) = bayeos.getSeries([2717,2718])

In [ ]:
# Slice values 
index = [x[0] for x in data]
values = [x[1:] for x in data]

In [ ]:
# Create plot 
plt.plot(index,values)
plt.gcf().autofmt_xdate()
plt.show()

In [ ]:
# Close connection
bayeos.disconnect()