obspy.imaging.waveform.WaveformPlotting¶
-
class
WaveformPlotting
(**kwargs)[source]¶ Bases:
object
Class that provides several solutions for plotting large and small waveform data sets.
Warning
This class should NOT be used directly, instead use the
plot()
method of the ObsPyStream
orTrace
objects.It uses matplotlib to plot the waveforms.
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined)
Public Methods
Plot the Traces showing one graph per Trace.
Extend the seismogram.
Plots multiple waveforms as a record section on a single plot.
Creates a graph of any given ObsPy Stream object.
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
Takes a Stream object and calculates the min and max values for each pixel in the dayplot.
Normalizes all values in the 3 dimensional array, so that the minimum value will be 0 and the maximum value will be 1.
Sets the xticks for the dayplot.
Sets the yticks for the dayplot.
Plots the data using a min/max approach that calculated the minimum and maximum values of each “pixel” and then plots only these values.
Goes through all axes in pyplot and sets time ticks on the x axis.
Just plots the data samples in the self.stream.
Helper function to return fractions from offsets
Define the color of each trace
Function initialises plot all the illustration is done by self.plot_section()
Define the time vector for each trace
Arrange the trace data used for plotting.
This helper function normalizes the traces
The traces have to be scaled to fit between 0-1., each trace gets distance-range/num_traces space.
The design and look of the whole plot to be produced.
Plots the dayplot scale if requested.
Helper function to plot an event into the dayplot.
Method to be used as a callback on method=fast, “minmax”-type plots to warn the user when zooming into the plot.
Special Methods
Destructor closes the figure instance if it has been created by the class.
Default dir() implementation.
Default object formatter.
Checks some variables and maps the kwargs to class variables.
This method is called when a class is subclassed.
Create and return a new object.
Helper for pickle.
Helper for pickle.
Size of object in memory, in bytes.
Abstract classes can override this to customize issubclass().