PlotSeis.jl¶
Installation¶
- Ensure Python is installed and working on your machine.
- [Install matplotlib for Python.](https://matplotlib.org/users/installing.html)
- From the Julia prompt, press “]” to enter package mode, then type “add PlotSeis”
- Exit package mode with “^C”, then type “using PlotSeis”
Time-Series Plots¶
-
plotseis
(S::SeisData[, fmt="auto", use_name=false, nxt=5)])¶
Normalized trace plot of data in S
. Time-series data use lines; irregularly-
sampled data are plotted with circles.
-
uptimes
(S::SeisData[, summed=false, fmt="auto", use_name=false])¶
Plot uptimes of each channel in S
using filled, colored bars.
If summed==true
, plot uptimes for all channels in S that record timeseries data,
scaled so that y=1 corresponds to 100% of channels active. Non-timeseries
channels in S are not counted toward the cumulative total in a summed uptime plot.
Keywords¶
fmt=FMT
formats x-axis labels using C-languagestrftime
format stringFMT
. If unspecified, the format is determined by when data inS
start and end.use_name=true
usesS.name
, rather thanS.id
, for trace labels.n=N
sets the number of X-axis ticks to N.
Time-Frequency Plots¶
-
logspec
(S::SeisData, k::Union{Int64, String}[, nx=1024, ov=0.5, fmin=0.5*fs/nx, fmax=0.5*fs, fmt="auto"])¶
Spectrogram of trace number or channel ID k
with logarithmic scaling of the
y-axis (frequency).
Keywords¶
- nx window length
- ov overlap fraction between adjacent windows
- fmin lowest frequency to plot
- fmax highest frequency to plot