.. _sphx_glr_gallery_plot_temperature.py: Plotting the Temperature from an Energy File ============================================ This example reads an Gromacs energy file and plots the evolultion and mean of the temperature. .. image:: /gallery/images/sphx_glr_plot_temperature_001.png :align: center .. code-block:: python from matplotlib import pyplot as plt import mdevaluate as md import tudplot tudplot.activate() edr = md.open_energy('/data/niels/sim/water/bulk/300K/out/energy_water1000bulk300.edr') T = edr['Temperature'] plt.plot(edr.time, T) plt.plot(edr.time[[0, -1]], [T.mean(), T.mean()]) **Total running time of the script:** (0 minutes 0.504 seconds) .. container:: sphx-glr-download **Download Python source code:** :download:`plot_temperature.py ` .. container:: sphx-glr-download **Download IPython notebook:** :download:`plot_temperature.ipynb ` .. rst-class:: sphx-glr-signature `Generated by Sphinx-Gallery `_