obspy.imaging.util.ObsPyAutoDateFormatter

class ObsPyAutoDateFormatter(*args, **kwargs)[source]

Bases: AutoDateFormatter

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

Attributes

axis

locs

Public Methods

create_dummy_axis

fix_minus

Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness. This is a helper method to perform such a replacement when it is enabled via :rc:`axes.unicode_minus`.

format_data

Return the full string representation of the value with the position unspecified.

format_data_short

Return a short string version of the tick value.

format_ticks

Return the tick labels for all the ticks at once.

get_offset

set_axis

set_bounds

[Deprecated]

set_data_interval

[Deprecated]

set_locs

Set the locations of the ticks.

set_view_interval

[Deprecated]

Private Methods

Warning

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

ObsPyAutoDateFormatter._set_locator(locator)

Special Methods

ObsPyAutoDateFormatter.__call__(x, pos=None)[source]
ObsPyAutoDateFormatter.__delattr__(name, /)

Implement delattr(self, name).

ObsPyAutoDateFormatter.__dir__()

Default dir() implementation.

ObsPyAutoDateFormatter.__eq__(value, /)

Return self==value.

ObsPyAutoDateFormatter.__format__(format_spec, /)

Default object formatter.

ObsPyAutoDateFormatter.__ge__(value, /)

Return self>=value.

ObsPyAutoDateFormatter.__getattribute__(name, /)

Return getattr(self, name).

ObsPyAutoDateFormatter.__gt__(value, /)

Return self>value.

ObsPyAutoDateFormatter.__hash__()

Return hash(self).

ObsPyAutoDateFormatter.__init__(*args, **kwargs)[source]
ObsPyAutoDateFormatter.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

ObsPyAutoDateFormatter.__le__(value, /)

Return self<=value.

ObsPyAutoDateFormatter.__lt__(value, /)

Return self<value.

ObsPyAutoDateFormatter.__ne__(value, /)

Return self!=value.

ObsPyAutoDateFormatter.__new__(**kwargs)
ObsPyAutoDateFormatter.__reduce__()

Helper for pickle.

ObsPyAutoDateFormatter.__reduce_ex__(protocol, /)

Helper for pickle.

ObsPyAutoDateFormatter.__repr__()

Return repr(self).

ObsPyAutoDateFormatter.__setattr__(name, value, /)

Implement setattr(self, name, value).

ObsPyAutoDateFormatter.__sizeof__()

Size of object in memory, in bytes.

ObsPyAutoDateFormatter.__str__()

Return str(self).

ObsPyAutoDateFormatter.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).