obspy.imaging.util

Waveform plotting utilities.

copyright:

The ObsPy Development Team (devs@obspy.org)

license:

GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Public Functions

decimal_seconds_format_date_first_tick

This format function is used to format date ticklabels with decimal seconds but stripping trailing zeros.

decimal_seconds_format_x_decimals

Function factory for format functions to format date ticklabels with given number of decimals to seconds (stripping trailing zeros).

format_hour_minute

Format tick like '%H:%M' but add date to first tick

format_hour_minute_second

Format tick like '%H:%M:%S' but add date to first tick

Private Functions

Warning

Private functions are mainly for internal/developer use and their API might change without notice.

_component_code_key

Compare two single character component codes according to sane ZNE/ZRT/LQT order.

_id_key

Compare two trace IDs by network/station/location single character component codes according to sane ZNE/ZRT/LQT order.

_seconds_to_days

_set_xaxis_obspy_dates

Set Formatter/Locator of x-Axis to use ObsPyAutoDateFormatter and do some other tweaking.

_timestring

Returns a full string representation of a UTCDateTime object, stripping away trailing decimal-second zeros.

Classes

ObsPyAutoDateFormatter

Derived class to allow for more customized formatting with older matplotlib versions (older than 1.4.0, see matplotlib/matplotlib#2507).