import numpy as np import pylab as plt import read_ts as rts # testing tsfilex = "src/data/ts.ac" tsfiley = "../3dgausy2/src/data/ts.ac" tsfilez = "../3dgausz2/src/data/ts.ac" tsx = rts.tsdata(tsfilex) tsy = rts.tsdata(tsfiley) tsz = rts.tsdata(tsfilez) plt.figure() #plt.plot(ts.t, ts.urms, 'k--', label='urms') plt.plot(tsx.t, tsx.urms, 'r-', label='urms x') plt.plot(tsy.t, tsy.urms, 'g-', label='urms y') plt.plot(tsz.t, tsz.urms, 'b-', label='urms z') #plt.plot(ts.t, ts.uxrms, 'r-', label='uxrms') #plt.plot(ts.t, ts.uyrms, 'g-', label='uyrms') #plt.plot(ts.t, ts.uzrms, 'b-', label='uzrms') plt.xlabel("t") plt.ylabel("u") legend = plt.legend(loc='upper right', shadow=True) legend.get_frame().set_facecolor('#00FFCC') plt.figure() plt.plot(tsx.t, tsx.uxrms, 'r-', label='uxrms x') plt.plot(tsy.t, tsy.uxrms, 'g-', label='uxrms y') plt.plot(tsz.t, tsz.uxrms, 'b-', label='uxrms z') plt.xlabel("t") plt.ylabel("u")
import numpy as np import pylab as plt import read_ts as rts #testing tsfile = "data/ts.ac" ts = rts.tsdata(tsfile) #Some test plots plt.figure() plt.plot(ts.t, ts.dt, 'k-.', label='dt') plt.xlabel("t") plt.ylabel("dt") legend = plt.legend(loc='upper right', shadow=True) # Put a nicer background color on the legend. legend.get_frame().set_facecolor('#00FFCC') plt.figure() plt.plot(ts.t, ts.urms, 'k-.', label='urms') plt.plot(ts.t, ts.umax, 'k:', label='umax') plt.xlabel("t") plt.ylabel("u") legend = plt.legend(loc='upper right', shadow=True) # Put a nicer background color on the legend. legend.get_frame().set_facecolor('#00FFCC') plt.figure() plt.plot(ts.t, ts.urms, 'k-.', label='urms') plt.plot(ts.t, ts.uxrms, 'r-', label='uxrms') plt.plot(ts.t, ts.uyrms, 'g--', label='uyrms') plt.plot(ts.t, ts.uzrms, 'b:', label='uzrms')
import numpy as np import pylab as plt import read_ts as rts #testing tsfilex = "src/data/ts.ac" tsfiley = "../3dgausy2/src/data/ts.ac" tsfilez = "../3dgausz2/src/data/ts.ac" tsx = rts.tsdata(tsfilex) tsy = rts.tsdata(tsfiley) tsz = rts.tsdata(tsfilez) plt.figure() #plt.plot(ts.t, ts.urms, 'k--', label='urms') plt.plot(tsx.t, tsx.urms, 'r-', label='urms x') plt.plot(tsy.t, tsy.urms, 'g-', label='urms y') plt.plot(tsz.t, tsz.urms, 'b-', label='urms z') #plt.plot(ts.t, ts.uxrms, 'r-', label='uxrms') #plt.plot(ts.t, ts.uyrms, 'g-', label='uyrms') #plt.plot(ts.t, ts.uzrms, 'b-', label='uzrms') plt.xlabel("t") plt.ylabel("u") legend = plt.legend(loc='upper right', shadow=True) legend.get_frame().set_facecolor('#00FFCC') plt.figure() plt.plot(tsx.t, tsx.uxrms, 'r-', label='uxrms x') plt.plot(tsy.t, tsy.uxrms, 'g-', label='uxrms y') plt.plot(tsz.t, tsz.uxrms, 'b-', label='uxrms z') plt.xlabel("t") plt.ylabel("u")