On Sep 26, 4:42 pm, Bas <[EMAIL PROTECTED]> wrote:
> On Sep 26, 10:33 pm, afrogazer <[EMAIL PROTECTED]> wrote:> rad_angles =
> [elem*(pi/180) for elem in angles]
>
> You are missing some more on a friday afternoon: angles is created by
> arange, so it is a numpy array. In that case you simply can
On Sep 26, 3:33 pm, afrogazer <[EMAIL PROTECTED]> wrote:
> In my rush I seem to have overlooked that, maybe because it's Friday
> afternoon. Converting the degrees to radians fixed it:
>
> rad_angles = [elem*(pi/180) for elem in angles]
>
> Thanks,
One other caveat, some of the bars may over-lap.
On Sep 26, 10:33 pm, afrogazer <[EMAIL PROTECTED]> wrote:
> rad_angles = [elem*(pi/180) for elem in angles]
You are missing some more on a friday afternoon: angles is created by
arange, so it is a numpy array. In that case you simply can do
rad_angles = pi/180 * angles
No need to use list-comprehen
In my rush I seem to have overlooked that, maybe because it's Friday
afternoon. Converting the degrees to radians fixed it:
rad_angles = [elem*(pi/180) for elem in angles]
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
I only have experience with the matlab version of polar, but my wild
guess is that you have convert your degrees to radians. Go to the
Matplotlib newsgroup if you need any better help.
HTH,
Bas
--
http://mail.python.org/mailman/listinfo/python-list
I am creating a wind rose using a polar bar plot bu the points do not
seem to align to the correct angles. Here is the sample code I am
using. I can't seem to see anything in the API on how to set the
angles.
Any ideas anybody?
Thanks.
from pylab import *
angles = arange(0,360,45)
data = [18, 1