obspy.imaging.util._set_xaxis_obspy_dates

_set_xaxis_obspy_dates(ax, ticklabels_small=True)[source]

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

In contrast to normal matplotlib AutoDateFormatter e.g. shows full timestamp on first tick when zoomed in so far that matplotlib would only show hours or minutes on all ticks (making it impossible to tell the date from the axis labels) and also shows full timestamp in matplotlib figures info line (mouse-over info of current cursor position).

Return type

None