[e98087]: Examples / FunkyPythonPostproc / correlatePressureAndPlaceEnd.py Maximize Restore History

Download this file

correlatePressureAndPlaceEnd.py    21 lines (19 with data), 527 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
def makePlot():
pyplot.figure()
pyplot.xlabel("Time [s]")
pyplot.subplot(2,1,1)
pyplot.title("Development of parameters over time")
pyplot.plot(times,offsets,"r")
pyplot.ylabel("Offset [Pa]")
pyplot.subplot(2,1,2)
pyplot.plot(times,slopes,"g")
pyplot.ylabel("Slope [Pa/s]")
pyplot.xlabel("Time [s]")
makePlot()
pyplot.savefig("ParameterDevelopment.png")
try:
pyplot.xkcd()
makePlot()
pyplot.savefig("ParameterDevelopmentXKCD.png")
except AttributeError:
print "No XKCD"