 <p>git clone <a href="https://github.com/3rdcycle/pyqtgraph.git" rel="nofollow">https://github.com/3rdcycle/pyqtgraph.git</a></p> <p>git checkout origin/date-axis-item</p> <p>pip uninstall pyqtgraph</p> <p>python setup.py install</p> <p>and changing your example to:</p> <pre><code># -*- coding: utf-8 -*- """ Description of example """ import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui import numpy as np pg.mkQApp() axis = pg.DateAxisItem(orientation='bottom') pw = pg.PlotWidget(axisItems={'bottom': axis}) pw.setWindowTitle('pyqtgraph example: DateTimeAxis') pw.show() pw.setXRange(1383960000, 1384020000) ## Start Qt event loop unless running in interactive mode or using pyside. if __name__ == '__main__': import sys if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'): QtGui.QApplication.instance().exe </code></pre> <p>should work.</p>