.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/plot_lruj.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_lruj.py: Plot the LRUJ results ===================== This example shows how to parse the output file produced by lruj and plot the results See also https://docs.abinit.org/tutorial/lruj/#43-execution-of-the-lruj-post-processinng-utility .. GENERATED FROM PYTHON SOURCE LINES 11-19 .. code-block:: Python from abipy.electrons.lruj import LrujAnalyzer, LrujResults import abipy.data as abidata import os # Initialize LrujResults from the main output file of lruj outfile = abidata.ref_file("lruj_data/lruj.out") lr = LrujResults.from_file(outfile) .. GENERATED FROM PYTHON SOURCE LINES 20-21 Plot the fits. .. GENERATED FROM PYTHON SOURCE LINES 21-40 .. code-block:: Python lr.plot(degrees="all", insetdegree=4, ptcolor0='blue', ptitle="Hello World", fontsize=9) #filepaths = [ # "tlruj_2.o_DS1_LRUJ.nc", # "tlruj_2.o_DS2_LRUJ.nc", # "tlruj_2.o_DS3_LRUJ.nc", # "tlruj_2.o_DS4_LRUJ.nc", #] # #root = "tutorial_tlruj_1-tlruj_2-tlruj_3/" #filepaths = [os.path.join(root, p) for p in filepaths] # #lruj = LrujAnalyzer(verbose=1) #lruj.add_ncpaths("foo", filepaths) #lruj.add_ncpaths("bar", filepaths) #print(lruj) #lruj.plot() .. image-sg:: /gallery/images/sphx_glr_plot_lruj_001.png :alt: Hello World :srcset: /gallery/images/sphx_glr_plot_lruj_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.155 seconds) .. _sphx_glr_download_gallery_plot_lruj.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_lruj.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_lruj.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_lruj.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_