mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
edd1ff4529
A first general restructuration of the doc according to the pattern [tour|tutorial|reference]. In the reference part, objects are documented per topic. In each topic, [definition|c++|python|hdf5] (not yet implemented)
17 lines
373 B
Python
17 lines
373 B
Python
from pytriqs.gf.local import GfReFreq
|
|
from pytriqs.archive import HDFArchive
|
|
from math import pi
|
|
|
|
R = HDFArchive('myfile.h5', 'r')
|
|
|
|
from pytriqs.plot.mpl_interface import oplot, plt
|
|
|
|
for name, g in R.items() : # iterate on the elements of R, like a dict ...
|
|
oplot( (- 1/pi * g).imag, "-o", name = name)
|
|
|
|
plt.xlim(-1,1)
|
|
plt.ylim(0,7)
|
|
|
|
p.savefig("./tut_ex3b.png")
|
|
|