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. |
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__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__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. |
_plotDayplotScale | Plots the dayplot scale if requested. |
_plotEvent | Helper function to plot an event into the dayplot. |
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. |