.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_examples\tutorial\Ascii_plot.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr__examples_tutorial_Ascii_plot.py: Plotting data from an ASCII file (script) ========================================== Example plot of 'Pleth' and 'ECG1' from an ascii file. .. GENERATED FROM PYTHON SOURCE LINES 8-25 .. code-block:: default :lineno-start: 9 import numpy as np import pandas as pd import matplotlib.pyplot as plt #Remember to change path df = pd.read_table(r"D:\FILES\Desktop\Dissertation ICL\OUCRU\01NVa_Dengue\Adults\01NVa-003-2001\Monitor\01NVa-003-2001waves.asc",header=1) #Visualising Data df #Plotting Data ax = plt.gca() df[:1000000].plot(kind='line',x='Time',y='ECG1',ax=ax) df[:1000000].plot(kind='line',x='Time',y='Pleth', color='red', ax=ax) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download__examples_tutorial_Ascii_plot.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Ascii_plot.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Ascii_plot.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_