Matplotlib Polar Plot Angles/Axes

afrogazer justin.kuto at gmail.com
Fri Sep 26 17:46:21 EDT 2008


On Sep 26, 4:42 pm, Bas <wegw... at gmail.com> wrote:
> On Sep 26, 10:33 pm, afrogazer <justin.k... at gmail.com> 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-comprehensions, that is the whole idea about using
> these kick-ass objects!
>
> Bas

Thanks! Should have thought of that, Fridays are a drag.



More information about the Python-list mailing list