# DateAxisItem

class pyqtgraph.DateAxisItem(orientation='bottom', utcOffset=None, **kwargs)

  Bases: `AxisItem`

  An AxisItem that displays dates from unix timestamps.

  The display format is adjusted automatically depending on the current time density (seconds/point) on the axis. For more details on changing this behaviour, see `setZoomLevelForDensity()`.

  Can be added to an existing plot e.g. via `setAxisItems({'bottom':axis})`.

  __init__(orientation='bottom', utcOffset=None, **kwargs)

    Create a new DateAxisItem.

    For orientation and **kwargs, see `AxisItem.__init__`.

  linkToView(view)

    Link this axis to a ViewBox, causing its displayed range to match the visible range of the view.

  setZoomLevelForDensity(density)

    Setting zoomLevel and minSpacing based on given density of seconds per pixel

    The display format is adjusted automatically depending on the current time density (seconds/point) on the axis. You can customize the behaviour by overriding this function or setting a different set of zoom levels than the default one. The zoomLevels variable is a dictionary with the maximal distance of ticks in seconds which are allowed for each zoom level before the axis switches to the next coarser level. To customize the zoom level selection, override this function.

previous

GraphicsWidgetAnchor

next

TargetItem