pyrad.graph.plot_timeseries#
- pyrad.graph.plot_timeseries(tvec, data_list, fname_list, labelx='Time [UTC]', labely='Value', labels=['Sensor'], title='Time Series', period=0, timeformat=None, colors=None, linestyles=None, markers=None, ymin=None, ymax=None, dpi=72)[source]#
plots a time series
- Parameters:
tvec (datetime object) – time of the time series
data_list (list of float array) – values of the time series
fname_list (list of str) – list of names of the files where to store the plot
labelx (str) – The label of the X axis
labely (str) – The label of the Y axis
labels (array of str) – The label of the legend
title (str) – The figure title
period (float) – measurement period in seconds used to compute accumulation. If 0 no accumulation is computed
timeformat (str) – Specifies the tvec and time format on the x axis
colors (array of str) – Specifies the colors of each line
linestyles (array of str) – Specifies the line style of each line
markers (array of str) – Specify the markers to be used for each line
ymin, ymax (float) – Lower/Upper limit of y axis
dpi (int) – dots per inch
- Returns:
fname_list (list of str) – list of names of the created plots
History
——–
201?.??.?? -fvj- creation
2017.08.21 -jgr- modified margins and grid + minor graphical updates
2018.03.05 -jgr- added x-limit of x axis to avoid unwanted error messages