cigvis.mpl1dplot module#
Functions for plotting 1D data using matplotlib#
Some 1D plotting tools (based on matplotlib). Since matplotlib is already very convenient and provides more freedom, the implementations in this package are very simple and are only for reference.
In the future, we will implement some demos that have more geophysical features.
- cigvis.mpl1dplot.plot1_with_fill(y, x=None, y2='min', v='y', cmap='jet', orient='h', xlabel='', ylabel='', title='', xlim=None, ylim=None, ax=None)#
- cigvis.mpl1dplot.plot1d(data: ndarray | List, dt: float = 1, beg: float = 0, orient: str = 'v', figsize: Tuple | List = (2, 8), title: str = None, axis_label: str = None, value_label: str = None, fill_up=None, fill_down=None, fill_color=None, c='#1f77b4', save=None, show=True, dpi=600, ax=None)#
plot a 1d trace
Parameters#
- dataarray-like
input data
- dtfloat
interval of data, such as 0.2 means data sampling in 0.2, 0.4, …
- begfloat
begin sampling, beg=1.6, dt=0.2 means data sampling is 1.6, 1.8, ..
- orientOptinal [‘v’, ‘h’]
orientation of the data, ‘v’ means vertical, ‘h’ means horizontal
- figsizeTuple or List
(value-axis length, sampling-axis length)
- titlestr
title
- axis_labelstr
sampling-axis label
- value_labelstr
value axis label
- cmpl.colors.Color
color for the line
- cigvis.mpl1dplot.plot_multi_traces(data, dt=0.002, beg=0, inter=1.0, c='black', fill_up=None, fill_down=None, fill_color='black', figsize=None, xlabel='Trace number', ylabel='Time / s', save: str = None, show: bool = True, dpi=600, lw=1, ax=None)#
data.shape = (h, n_traces)
- cigvis.mpl1dplot.plot_signal_compare(raw, offset_df=None, offset_index=None, with_offset=False, ntstart=0, ntend=6144, show=True, save=None, dpi=600, ax=None)#