pw=pg.PlotWidget(viewBox=vb,axisItems={'bottom':axis},enableMenu=False,title="PlotItem with custom axis and ViewBox<br>Menu disabled, mouse behavior changed: left-drag to zoom, right-click to reset zoom")
dates=np.arange(8)*(3600*24*356)
pw.plot(x=dates,y=[1,6,2,4,3,5,6,8],symbol='o')
pw.show()
r=pg.PolyLineROI([(0,0),(10,10)])
pw.addItem(r)
## Start Qt event loop unless running in interactive mode or using pyside.