ActiveState Code

Recipe 576493: Customizing polar plots in matplotlib


This snipped illustrates the use of thetagrids and rgrids to customize the polar plot grid

Python
1
2
3
4
5
import pylab as m

m.polar(m.arange(360)*m.pi/180., m.rand(360))
m.thetagrids(angles, labels=None, fmt='%d', frac = 1.1)
m.rgrids(radii, labels=None, angle=22.5)

Sign in to comment