polar plots... again...

As a temporary solution you might try just transforming your

    > r,theta data to x, y and then drawing a grid over it.

A nice workaround. You may want to add

  axis('off')

To get rid of the background axes.

    > 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.

I was planning on taking a different tack, and derive a PolarAxes from
Axes and RadialAxis from Axis, etc, which uses circles rather then
lines for the radial gridlines, and so on. But you get so close with
so little code that your approach may be better. If you want to keep
forging ahead, I'm happy to leave the ball in your court.

On an unrelated note,

  from Numeric import *
  from matplotlib.matlab import *

is redundant because matplotlib.matlab imports all of numeric/numarray
as well as MLab, fft, and some stuff from LinearAlgebra and Matrix.
This is to provide a matlab like environment where most of the things
you need are there.

JDH

One thing I'm not sure of is just how polar plots are supposed to work.
If you set the axis background color, what gets colored? To get that
right (if "in the circle" is right), I guess you'd need a new Axes
class.

In gnuplot, everything is drawn in the rectangle. "set polar; set grid;
plot sin(3*t)" gives you a rectangular grid. You have to do "set grid
polar" to circles. Of course gnuplot isn't what we're going for (How do
you change background color? The only way I know is using xresources.)

I guess the answer should be what matlab does (unless we can think of
something better). Now I've never used matlab, so this will take a
little research. I borrowed a matlab graphics book and will take a
peek.

Keep up the good work.

Thanks,
Greg

PS Say hi to hyde park for me. I graduated in 98.

···

On Wed, 2004-03-31 at 07:54, John Hunter wrote:

    > As a temporary solution you might try just transforming your
    > r,theta data to x, y and then drawing a grid over it.

A nice workaround. You may want to add

  axis('off')

To get rid of the background axes.

    > 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.

I was planning on taking a different tack, and derive a PolarAxes from
Axes and RadialAxis from Axis, etc, which uses circles rather then
lines for the radial gridlines, and so on. But you get so close with
so little code that your approach may be better. If you want to keep
forging ahead, I'm happy to leave the ball in your court.

On an unrelated note,

  from Numeric import *
  from matplotlib.matlab import *

is redundant because matplotlib.matlab imports all of numeric/numarray
as well as MLab, fft, and some stuff from LinearAlgebra and Matrix.
This is to provide a matlab like environment where most of the things
you need are there.

JDH

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Greg Whittier <greg@...123...>