-
Notifications
You must be signed in to change notification settings - Fork 8
/
c.py
32 lines (27 loc) · 873 Bytes
/
c.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import matplotlib.pylab as plt
import numpy as np
c,f,Co,u = np.loadtxt('c.log',delimiter='\t',unpack=True)
n = len(f)
x = np.linspace(0,n-1,n)
plt.plot(x, c, linewidth=5,color='k')
plt.xlabel('$t$',fontsize=28)
plt.ylabel('$c$',fontsize=28)
plt.savefig("c.png", dpi=600, bbox_inches='tight')
plt.close()
f0 = 1.01*np.min(f)
plt.semilogy(x, f-f0, linewidth=5,color='k')
plt.xlabel('$t$',fontsize=28)
plt.ylabel('$\Delta\mathcal{F}$',fontsize=28)
plt.savefig("f.png", dpi=600, bbox_inches='tight')
plt.close()
C0 = 1.01*np.min(Co)
plt.semilogy(x, Co-C0, linewidth=5,color='k')
plt.xlabel('$t$',fontsize=28)
plt.ylabel('Co',fontsize=28)
plt.savefig("Co.png", dpi=600, bbox_inches='tight')
plt.close()
plt.plot(x, u, linewidth=5,color='k')
plt.xlabel('$t$',fontsize=28)
plt.ylabel('$\Delta\mu$',fontsize=28)
plt.savefig("u.png", dpi=600, bbox_inches='tight')
plt.close()