mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 19:53:45 +01:00
16 lines
376 B
Python
16 lines
376 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
|
||
|
plt.xrange(-1,1)
|
||
|
plt.yrange(0,7)
|
||
|
|
||
|
for name, g in R.items() : # iterate on the elements of R, like a dict ...
|
||
|
oplot( (- 1/pi * g).imag, "-o", name = name)
|
||
|
|
||
|
p.savefig("./tut_ex3b.png")
|
||
|
|