39
39
# See the pylab rgrids and thetagrids functions for
40
40
# information on how to customize the grid locations and labels
42
import matplotlib.numerix as nx
43
from pylab import figure, show, rc
44
45
# radar green, solid grid lines
45
46
rc('grid', color='#316931', linewidth=1, linestyle='-')
46
47
rc('xtick', labelsize=15)
47
48
rc('ytick', labelsize=15)
48
50
# force square figure and square axes looks better for polar, IMO
50
ax = axes([0.1, 0.1, 0.8, 0.8], polar=True, axisbg='#d5de9c')
54
polar(theta, r, color='#ee8d18', lw=3)
56
title("And there was much rejoicing!", fontsize=20)
51
fig = figure(figsize=(8,8))
52
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True, axisbg='#d5de9c')
54
r = nx.arange(0, 3.0, 0.01)
56
ax.plot(theta, r, color='#ee8d18', lw=3)
59
ax.set_title("And there was much rejoicing!", fontsize=20)
60
fig.savefig('polar_demo')