python Library
plotTimeSeries
Keine Erläuterungen gefunden.
def plot(dataDict,plotSelector,title=""): """ 'dataDict' is a dictionary holding time series of multiple signals. The 'plotSelector' is a list of variable names. """ import matplotlib.pyplot as plt color = ['deeppink','g','b','#cc0000','#00ff00','#00ffff','#ff9900','#800080','#008080'] varNames = list(dataDict.keys()) NoVars = len(varNames) legend = [] #do you have 'time' in the selected data? for i,name in enumerate(plotSelector): plt.plot(dataDict['time'],dataDict[name],c=color[i]) legend.append(name) plt.legend(legend) plt.title(title) plt.grid(color='k', linestyle='dotted') plt.show()
Index of Library
Der gesamte Sourcecode darf gemäß GNU General Public License weiterverbreitet werden.