obspy.imaging.util.decimal_seconds_format_x_decimals

decimal_seconds_format_x_decimals(decimals=None)[source]

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

Parameters

decimals (int) – Number of decimals for seconds after which to cut off format string. Decimals are left alone if not specified.