ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 06 Mar 2015 06:45:48 -0600Polar plot by points? (i.e. polar_line?)https://ask.sagemath.org/question/26044/polar-plot-by-points-ie-polar_line/ Hello!
If one operates in cartesian coordinates and has a function, he can plot it using *plot*. If it is a data points one can consider using *line* function. Accordingly, if we operate in polar coordinates, for the function plotting we have *polar_plot*, but what if we have only data points and we need them to be plotted in polar axes? Like, if we have an array of $[\phi_i, r_i]$.
I didn't find anything appropriate (tried polar_line and line(polar=True)) so I wrote:
def polar_line(polar_points, **kwds):
return line([(r * cos(phi), r * sin(phi)) for r, phi in polar_points], **kwds)
I am wondering is there anything default in sage for plotting in polar axes by data points?Fri, 06 Mar 2015 06:45:48 -0600https://ask.sagemath.org/question/26044/polar-plot-by-points-ie-polar_line/