.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/plot_a2f.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_a2f.py: Eliashberg function =================== This example shows how to plot the Eliashberg function a2F(w) and the total e-ph coupling strenght in metals. .. GENERATED FROM PYTHON SOURCE LINES 9-33 .. rst-class:: sphx-glr-horizontal * .. image-sg:: /gallery/images/sphx_glr_plot_a2f_001.png :alt: plot a2f :srcset: /gallery/images/sphx_glr_plot_a2f_001.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_plot_a2f_002.png :alt: plot a2f :srcset: /gallery/images/sphx_glr_plot_a2f_002.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_plot_a2f_003.png :alt: plot a2f :srcset: /gallery/images/sphx_glr_plot_a2f_003.png :class: sphx-glr-multi-img .. code-block:: Python from abipy import abilab import abipy.data as abidata a2file = abilab.abiopen(abidata.ref_file("al_888k_161616q_A2F.nc")) #print(a2file) #a2file.phbands.plot() #a2file.a2f_qintp.plot() #with_lambda = False #fig = a2file.a2f_qcoarse.plot_nuterms(with_lambda=with_lambda, show=False) #a2file.a2f_qintp.plot_nuterms(axmat=fig.axes, with_lambda=with_lambda) #a2file.plot() phdos_path = abidata.ref_file("al_161616q_PHDOS.nc") a2file.plot_with_a2f(phdos=phdos_path) a2file.plot_eph_strength(what="gamma") #a2file.plot_eph_strength(what="lambda") a2file.plot_a2f_interpol() # Grid with 3 plots (a2F, F, a2F) with F taken from PHDOS file. #a2file.a2f_qintp.plot_a2(phdos_path) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 3.028 seconds) .. _sphx_glr_download_gallery_plot_a2f.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_a2f.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_a2f.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_a2f.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_