From: Ryan M. <rm...@gm...> - 2008-12-02 17:14:55
|
On Tue, Dec 2, 2008 at 11:07 AM, Nils Wagner <nw...@ia...>wrote: > Hi all, > > If I run the attached example I obtain no polar plots, but a view like > plot(t,r_1) - for what reason ? > You need to specify polar=True to the subplot commands. Try this: from pylab import subplot, polar, linspace, show from numpy import pi, sin, cos t = linspace(0,2*pi,20) r_1 = (1+sin(t)) r_2 = (1+cos(t)) subplot(211, polar=True) polar(t,r_1) #Or can use plot() subplot(212, polar=True) polar(t,r_2) show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |