polar() is not equal to ax.plot (where ax is a PolarAxes)?

Hi all,

I have been trying both ways of plotting polar and found that they behave
differently?
Is it just me?

I have sets of theta and R to plot, and when I plotted in console using
polar() it produces different plot (!) than when I used ax.plot() from my
application. I compared this with the plot produced in Matlab using the same
sets of data, and found that it looked closer to my plot produced using
polar().

I am confused :frowning:

Thank you

···


View this message in context: http://www.nabble.com/polar()-is-not-equal-to-ax.plot-(where-ax-is-a-PolarAxes)--tp24784409p24784409.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

I'm not able to see a difference between the two methods here:

from pylab import *
import numpy as np

r = np.arange(0, 3.0, 0.01)
theta = 2*np.pi*r
fig = figure()
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True)
ax.plot(theta, r)
show()

polar(theta, r)
show()

Can you provide a standalone script that demonstrates the difference? What version of matplotlib are you using?

Cheers,
Mike

plaf wrote:

···

Hi all,

I have been trying both ways of plotting polar and found that they behave
differently?
Is it just me?

I have sets of theta and R to plot, and when I plotted in console using
polar() it produces different plot (!) than when I used ax.plot() from my
application. I compared this with the plot produced in Matlab using the same
sets of data, and found that it looked closer to my plot produced using
polar().

I am confused :frowning:

Thank you
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA