doc/tutorialsexercises/energetics/rpa_tut/plot_con_freq.py
raw| 1 | # web-page: con_freq.png |
| 2 | import numpy as np |
| 3 | import matplotlib.pyplot as plt |
| 4 | |
| 5 | A = np.loadtxt('con_freq.dat').transpose() |
| 6 | plt.plot(A[0], A[1], 'o-') |
| 7 | |
| 8 | plt.xlabel('Number of frequency points', fontsize=18) |
| 9 | plt.ylabel('Energy', fontsize=18) |
| 10 | plt.axis([None, None, -6.7, -6.3]) |
| 11 | plt.savefig('con_freq.png') |