obspy.imaging.waveform.WaveformPlotting.plot_waveform

WaveformPlotting.plot_waveform(*args, **kwargs)[source]

Creates a graph of any given ObsPy Stream object. It either saves the image directly to the file system or returns a binary image string.

For all color values you can use legit HTML names, HTML hex strings (e.g. ‘#eeefff’) or you can pass an RGB tuple, where each of R, G, and B are in the range [0, 1]. You can also use single letters for basic built-in colors (‘b’ = blue, ‘g’ = green, ‘r’ = red, ‘c’ = cyan, ‘m’ = magenta, ‘y’ = yellow, ‘k’ = black, ‘w’ = white) and gray shades can be given as a string encoding a float in the 0-1 range.