From: Greg Whittier <greg@th...>  20040331 02:11:33

As a temporary solution you might try just transforming your r,theta data to x, y and then drawing a grid over it. I looked at the classes and with the loglog already done as an example, it shouldn't be too hard to add polar plotting. So far though I haven't got any further than printing out some of the code. Here's a very rough example of a workaround. #!/usr/bin/python from Numeric import * from matplotlib.matlab import * def drawgrid(sp,rticlevels,thetaticlevels): for r in rticlevels: theta = arange(0,2*pi+0.05,0.05) x = r*cos(theta) y = r*sin(theta) sp.plot(x,y,'k') for theta in thetaticlevels: x = rticlevels[1]*cos(theta) y = rticlevels[1]*sin(theta) sp.plot([0,x],[0,y],'k') def polar(sp,r,theta,marker,rticlevels,thetaticlevels): x = r*cos(theta) y = r*sin(theta) sp.plot(x,y,marker) drawgrid(sp,rticlevels,thetaticlevels) return sp sp = subplot(111) theta = arange(0,pi,0.1) r = 0.5 + cos(theta) polar(sp,r,theta,'b',arange(0.5,2.0,0.5),arange(0.,2*pi,pi/9.)) On Tue, 20040330 at 14:32, Peter Groszkowski wrote: > Hello: > > I am currently using matplotlib for all the plotting in the software I am writing. I will however need to produce polar plots. As John has mentioned they should be added at one point. So my shameless question is roughly what version could I expect them to be included in? My options are to either wait for it, write it on my own, or write a simple interface (for my code) to GNUPlot or some other tool. I have not done very much poking around in the current matplotlib libraries (other than changing some rather minor details) and have a feeling that this might take me the longest. Interfacing GNUPLot to my code would not take more than a few hours, but I would prefer to stay with matplotlib. > > Thanks for the great work. > Best, 