Skip to content

Instantly share code, notes, and snippets.

@cpascual
cpascual / pg_time_axis.py
Last active March 12, 2024 19:24
An example on how to use a timestamp-based axis with pyqtgraph. This file has been adapted from taurus_pyqtgraph: https://github.com/taurus-org/taurus_pyqtgraph/blob/master/taurus_pyqtgraph/dateaxisitem.py
#!/usr/bin/env python
#############################################################################
#
# This file was adapted from Taurus TEP17, but all taurus dependencies were
# removed so that it works with just pyqtgraph
#
# Just run it and play with the zoom to see how the labels and tick positions
# automatically adapt to the shown range
#