.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/1D/2-plot_multi_traces.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_1D_2-plot_multi_traces.py: Display multiple curves ========================== .. image:: ../../_static/cigvis/1D/2.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 14-39 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/1D/2.png' import numpy as np import cigvis import matplotlib.pyplot as plt root = '../../data/' sxp = root + 'seis_h360x600x400.dat' ni, nx, nt = 400, 600, 360 sx = np.fromfile(sxp, np.float32).reshape(ni, nx, nt) traces = sx[100, 50:70, :].T fig, axes = plt.subplots(1, 2, figsize=(10, 5)) cigvis.plot_multi_traces(traces, dt=0.02, c='black', ax=axes[0]) # fill mode cigvis.plot_multi_traces(traces, dt=0.02, c='black', fill_up=0.2, ax=axes[1]) plt.tight_layout() plt.savefig('example.png', bbox_inches='tight', pad_inches=0.01, dpi=200) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_gallery_1D_2-plot_multi_traces.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 2-plot_multi_traces.py <2-plot_multi_traces.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 2-plot_multi_traces.ipynb <2-plot_multi_traces.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_