doc/tutorialsexercises/energetics/rpa_tut/plot_w.py
raw| 1 | # web-page: E_w.png |
| 2 | import numpy as np |
| 3 | import matplotlib.pyplot as plt |
| 4 | |
| 5 | A = np.loadtxt('frequency_equidistant.dat').transpose() |
| 6 | plt.plot(A[0], A[1], label='Equidistant') |
| 7 | B = np.loadtxt('frequency_gauss16.dat').transpose() |
| 8 | plt.plot(B[0], B[1], 'o', label='Gauss-Legendre 16') |
| 9 | |
| 10 | plt.xlabel('Frequency [eV]', fontsize=18) |
| 11 | plt.ylabel('Integrand', fontsize=18) |
| 12 | plt.axis([0, 50, None, None]) |
| 13 | plt.legend(loc='lower right') |
| 14 | plt.savefig('E_w.png') |