Nice.  Thanks.  I had tried to do something similar, but kept getting
a curved line between each data point.
Also, I too got errors with a previous versions of matplotlib, but 0.98 works.

If someone were willing to add Radar plots to the matplotlib
functionality, would this be wanted by the users or maintainers?

Thanks,
Curtis

On Tue, Jun 17, 2008 at 4:18 PM, Tony S Yu <[EMAIL PROTECTED]> wrote:
>
> On Jun 15, 2008, at 11:54 AM, Curtis Jensen wrote:
>
>> There was recently a post on Radar/Spider plotting
>>
>> (http://sourceforge.net/mailarchive/message.php?msg_id=4845303A.9050204%40epcc.ed.ac.uk).
>> I too am interested in creating Radar plots with matplot.  Is there a
>> simple way to do this?
>
> Here's a hack to get part of what you want:
>
> =====
> from matplotlib.projections.polar import PolarAxes
> from pylab import *
>
> # Create 6 points (plus 7th point that matches the first) with coordinates
> r, theta
> N = 6
> theta = 2 * pi * linspace(0, 1, N+1)
> r = rand(N+1)
> r[N] = r[0]
>
> # HACK: force PolarAxes to use 1 line segment to connect specified points
> PolarAxes.RESOLUTION = 1
>
> ax = subplot(111, polar=True)
> c = ax.plot(theta, r, 'r-o')
> show()
> =====
>
> I think this only works on matplotlib 0.98. I tried using rgrids and
> thetagrids to change the labels, but for some reason I was getting a
> TypeError when I called either of those functions.
>
> -Tony
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to