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 ObsPy Stream or Trace objects.

It uses matplotlib to plot the waveforms.

Attributes

__dict__
__doc__ str(object) -> string
__module__ str(object) -> string
__weakref__ list of weak references to the object (if defined)

Public Methods

plot Plot the Traces showing one graph per Trace.
plotDay Extend the seismogram.
plotWaveform Creates a graph of any given ObsPy Stream object. It either saves the

Private Methods

_WaveformPlotting__dayplotGetMinMaxValues Takes a Stream object and calculates the min and max values for each
_WaveformPlotting__dayplotNormalizeValues Normalizes all values in the 3 dimensional array, so that the minimum value will be 0 and the maximum value will be 1.
_WaveformPlotting__dayplotSetXTicks Sets the xticks for the dayplot.
_WaveformPlotting__dayplotSetYTicks Sets the yticks for the dayplot.
_WaveformPlotting__getMergablesIds
_WaveformPlotting__getMergeId
_WaveformPlotting__getX
_WaveformPlotting__getY
_WaveformPlotting__plotMinMax Plots the data using a min/max approach that calculated the minimum and maximum values of each “pixel” and than plots only these values.
_WaveformPlotting__plotSetXTicks Goes through all axes in pyplot and sets time ticks on the x axis.
_WaveformPlotting__plotSetYTicks Goes through all axes in pyplot, reads self.stats and sets all ticks on the y axis.
_WaveformPlotting__plotStraight Just plots the data samples in the self.stream.
_WaveformPlotting__setupFigure The design and look of the whole plot to be produced.
_plotDayplotScale Plots the dayplot scale if requested.
_plotEvent Helper function to plot an event into the dayplot.

Special Methods

__init__ Checks some variables and maps the kwargs to class variables.

This Page