Matplotlib Polar Plot Angles/Axes

Bas wegwerp at gmail.com
Fri Sep 26 23:42:26 CEST 2008


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



More information about the Python-list mailing list