pswamp.visualization.components.date_time_axis
This module provides date-time aware axis
Classes
A tool that provides a date-time aware axis. It is implemented as an |
Module Contents
- class pswamp.visualization.components.date_time_axis.DateAxisItem(*args, **kwargs)
Bases:
pyqtgraph.AxisItemA tool that provides a date-time aware axis. It is implemented as an AxisItem that interpretes positions as unix timestamps (i.e. seconds since 1970). The labels and the tick positions are dynamically adjusted depending on the range. It provides a
attachToPlotItem()method to add it to a given PlotItem- _pxLabelWidth = 80
- _oldAxis = None
- static date_from_timestamp(timestamp)
- tickValues(minVal, maxVal, size)
Reimplemented from PlotItem to adjust to the range and to force the ticks at “round” positions in the context of time units instead of rounding in a decimal base
- tickStrings(values, scale, spacing)
Reimplemented from PlotItem to adjust to the range
- attachToPlotItem(plotItem)
Add this axis to the given PlotItem :param plotItem: (PlotItem)
- abstractmethod detachFromPlotItem()
Remove this axis from its attached PlotItem (not yet implemented)