Revision | 5e56b77d4446fae9d45bf176488783696dd4a75b (tree) |
---|---|
Zeit | 2007-07-04 21:38:16 |
Autor | iselllo |
Commiter | iselllo |
I added a simple python code temperature_comparison.py to read and plot
a couple of quantities
of
interest (as output by several simulations) to see the effect of the
temperature
@@ -0,0 +1,39 @@ | ||
1 | +#! /usr/bin/env python | |
2 | +from scipy import * | |
3 | +import pylab # used to read the .csv file | |
4 | + | |
5 | +mu_350=pylab.load("log_mu_evolution") | |
6 | +mu_400=pylab.load("../D_f-19-T400/log_mu_evolution") | |
7 | +mu_450=pylab.load("../D_f-19-T450/log_mu_evolution") | |
8 | + | |
9 | +print 'mu_350 is', mu_350 | |
10 | + | |
11 | +pylab.plot(mu_350[:,0],mu_350[:,1],mu_400[:,0],mu_400[:,1],mu_450[:,0],mu_450[:,1]) | |
12 | +pylab.xlabel('time') | |
13 | +pylab.ylabel('geometric mean') | |
14 | +pylab.legend(('T=350','T=400',"T=450")) | |
15 | +pylab.title('Effect of T on mean') | |
16 | +pylab.grid(True) | |
17 | +pylab.savefig('log_mu_vs_T') | |
18 | + | |
19 | +pylab.hold(False) | |
20 | + | |
21 | + | |
22 | +mu_350=pylab.load("tot_population_evolution") | |
23 | +mu_400=pylab.load("../D_f-19-T400/tot_population_evolution") | |
24 | +mu_450=pylab.load("../D_f-19-T450/tot_population_evolution") | |
25 | + | |
26 | +print 'now mu_350 is', mu_350 | |
27 | + | |
28 | +pylab.plot(mu_350[:,0],mu_350[:,1],mu_400[:,0],mu_400[:,1],mu_450[:,0],mu_450[:,1]) | |
29 | +pylab.xlabel('time') | |
30 | +pylab.ylabel('total particle concentration') | |
31 | +pylab.legend(('T=350','T=400',"T=450")) | |
32 | +pylab.title('Effect of T on mean') | |
33 | +pylab.grid(True) | |
34 | +pylab.savefig('N_tot_vs_T') | |
35 | + | |
36 | +pylab.hold(False) | |
37 | + | |
38 | + | |
39 | +print 'So far so good' |