plot a 1D trace#

This example demonstrates how to plot a 1D trace

image
# 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)

Total running time of the script: (0 minutes 0.000 seconds)

Gallery generated by Sphinx-Gallery