Polar plots

Hi, I was wondering about the status of polar plots --

    > the website says only "work underway" If no one is
    > working on this, I'm interested on implement polar plots
    > (and also imshow, pcolor, etc).

The work in progress claim is a bit overstated. If you search the
user's mailing list for polar, you'll see some code that was posted
that essentially provides a poorman's polar plot. It makes plot that
roughly do the right things vis-a-vis polar, but to "do it right (tm)"
you'll need to implement a polar axis class, derived from the Axis
base class (eg use patch.Circle to draw the theta axis). A polar
transform class is defined in the _transforms module. Among the other
changes, you'll want to set the default transform for polar axes.

If you decide you want to jump in, let me know and I'll write a more
long winded email about what I think is involved, bearing in mind that
I haven't actually implemented any of this code so my comments should
be taken with a grain of salt.

I'm not clear about the context of your mention of imshow and pcolor;
could you elaborate?

JDH

The work in progress claim is a bit overstated. If you search the
user's mailing list for polar, you'll see some code that was posted
that essentially provides a poorman's polar plot. It makes plot that
roughly do the right things vis-a-vis polar, but to "do it right (tm)"
you'll need to implement a polar axis class, derived from the Axis
base class (eg use patch.Circle to draw the theta axis). A polar
transform class is defined in the _transforms module. Among the other
changes, you'll want to set the default transform for polar axes.

Yes, my idea is to do it "properly", but I'm still getting myself
familiar with the code.

My original plan was to create a class PolarSubplot(PolarAxes), in the
same way that Subplot derives from Axes. I would then create the
PolarAxes class, implementing all the necessary methods, like plot(),
imshow(), etc. That's why I mentioned imshow() and pcolor(), because
my idea is to implement not only line plots, but specially pseudo
color plots on the polar axes.

After looking at the code for transforms, though, I'm not sure if all
this is really necessary. It seems to me that I can define a polar
transform, and simply reuse all the methods already defined in the
Axes class to the all the work, is that right? I saw the PolarXY
transform in the _transforms module, but it seems to be just a stub
(matplotlib 0.63.0) -- it has no defined methods.

If you decide you want to jump in, let me know and I'll write a more
long winded email about what I think is involved, bearing in mind that
I haven't actually implemented any of this code so my comments should
be taken with a grain of salt.

A few more details would be great. As I said, I'm still looking at the
code and getting used to how things work. I would be very happy to
contribute with matplotlib, it's a fantastic work and something that
was missing in the Python world for quite a long time.

Roberto

···

On Tue, 05 Oct 2004 20:14:44 -0500, John Hunter <jdhunter@...5...> wrote:

--
Roberto De Almeida <roberto@...157...>
this email is: [ ] bloggable [ ] ask first [ ] private [x] nonsense