.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/1D/3-plot_station.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_3-plot_station.py: seismogram ================ Plot seismogram offset with stations .. image:: ../../_static/cigvis/1D/3.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 16-38 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/1D/3.png' import numpy as np import cigvis import matplotlib.pyplot as plt data = np.load('../../data/smg/data.npy') offset = np.load('../../data/smg/offset.npy') offset_index = np.load('../../data/smg/offset_index.npy') fig, axes = plt.subplots(1, 2, figsize=(12, 6)) cigvis.plot_signal_compare(data, ax=axes[0]) cigvis.plot_signal_compare(data / 2, offset, offset_index, with_offset=True, ax=axes[1]) plt.tight_layout() plt.savefig('3.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_3-plot_station.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 3-plot_station.py <3-plot_station.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 3-plot_station.ipynb <3-plot_station.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_