.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/1D/0-plot_trace.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_0-plot_trace.py: plot a 1D trace ================ This example demonstrates how to plot a 1D trace .. image:: ../../_static/cigvis/1D/0.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 16-37 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/1D/0.png' import numpy as np import cigvis root = '../../data/' sxp = root + 'seis_h360x600x400.dat' ni, nx, nt = 400, 600, 360 sx = np.fromfile(sxp, np.float32).reshape(ni, nx, nt) trace = sx[100, 100, :] # 垂直显示 cigvis.plot1d(trace, dt=0.02, axis_label='Time / s', c='skyblue', save='example.png', dpi=200) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_gallery_1D_0-plot_trace.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 0-plot_trace.py <0-plot_trace.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 0-plot_trace.ipynb <0-plot_trace.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_