import pyqtgraph as pgplot = pg.plot()plot.setAspectLocked()# Add polar grid linesplot.addLine(x=0, pen=0.2)plot.addLine(y=0, pen=0.2)for r in range(2, 20, 2):circle = pg.QtGui.QGraphicsEllipseItem(-r, -r, r*2, r*2)circle.setPen(pg.mkPen(0.2))plot.addItem(circle)# make polar dataimport numpy as nptheta = np.linspace(0, 2*np.pi, 100)radius = np.random.normal(loc=10, size=100)# Transform to cartesian and plotx = radius * np.cos(theta)y = radius * np.sin(theta)plot.plot(x, y)
Great!
I just ran your example and it looks like it will do job for me. I was so reluctant to switch to matplotlib, as pyqtgraph worked so well for me .