User Tools

Site Tools


vatt:logging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vatt:logging [2018/03/27 13:19]
scott [Web API for advanced plotting]
vatt:logging [2019/05/28 18:06] (current)
scott
Line 1: Line 1:
 +====== This page has been deprecated and is no longer accurate  ======
 +
 ====== VATT Logging  ====== ====== VATT Logging  ======
  
Line 24: Line 26:
     url = "http://vatt.as.arizona.edu:42180/recent/data/{}.csv?minsago={}".format( table, minsago )     url = "http://vatt.as.arizona.edu:42180/recent/data/{}.csv?minsago={}".format( table, minsago )
     print("retreiving data from: \n\t\t{}".format(url))     print("retreiving data from: \n\t\t{}".format(url))
 +    dataframe[table].plot(subplots=True)
     try:     try:
         dataframe[table]=pd.read_csv(url)         dataframe[table]=pd.read_csv(url)
         print(dataframe[table])         print(dataframe[table])
 +        #uncomment the below line if you have matplotlib or pylab. 
 +        #dataframe[table].plot(subplots=True)
     except Exception as err:     except Exception as err:
         print err         print err
vatt/logging.1522181947.txt.gz · Last modified: 2018/03/27 13:19 by scott