Hamburger Hamburger

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

1ArnesKonto.py
2CIEcolorCoordinates_Spectrum.py
3MatlabStructures.py
4ModelicaExecution.py
5ModelicaMatFilter.py
6OperateAllFiles.py
7dictionaryStatistics.py
8familienKonto.py
9makeDoc.py
10plotTimeSeries.py
11readData2DictOfArrays.py
12replaceInFile.py
13showPointOnCIExy.py
14svg2pdf.py
15testNumpyMatrix.py
16writeDictOfArrays.py
17writeTSV.py

Der gesamte Sourcecode darf gemäß GNU General Public License weiterverbreitet werden.