obspy.imaging.waveform.WaveformPlotting

class WaveformPlotting(**kwargs)[source]

Bases: future.types.newobject.newobject

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__ unicode(string [, encoding[, errors]]) -> object
__module__ str(object) -> string
__weakref__ list of weak references to the object (if defined)

Public Methods

next
plot Plot the Traces showing one graph per Trace.
plotDay Extend the seismogram.
plotSection Plots multiple waveforms as a record section on a single plot.
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__plotMinMax Plots the data using a min/max approach that calculated the minimum and maximum values of each “pixel” and then plots only these values.
_WaveformPlotting__plotSetXTicks Goes through all axes in pyplot and sets time ticks on the x axis.
_WaveformPlotting__plotSetYTicks
_WaveformPlotting__plotStraight Just plots the data samples in the self.stream.
_WaveformPlotting__sectFractionToOffset Helper function to return fractions from offsets
_WaveformPlotting__sectInitPlot Function initialises plot all the illustration is done by
_WaveformPlotting__sectInitTime Define the time vector for each trace
_WaveformPlotting__sectInitTraces Arrange the trace data used for plotting.
_WaveformPlotting__sectNormalizeTraces This helper function normalizes the traces
_WaveformPlotting__sectOffsetToFraction Helper function to return offsets from fractions
_WaveformPlotting__sectScaleTraces The traces have to be scaled to fit between 0-1., each trace gets 1./num_traces space.
_WaveformPlotting__setupFigure The design and look of the whole plot to be produced.
_add_zoomlevel_warning_text
_draw_overlap_axvspan_legend
_draw_overlap_axvspans
_plotDayplotScale Plots the dayplot scale if requested.
_plotEvent Helper function to plot an event into the dayplot.
_remove_zoomlevel_warning_text
_time_to_xvalue
_warn_on_xaxis_zoom Method to be used as a callback on method=fast, “minmax”-type plots

Special Methods

__del__ Destructor closes the figure instance if it has been created by the
__init__ Checks some variables and maps the kwargs to class variables.
__long__
__native__ Hook for the future.utils.native() function
__nonzero__
__unicode__