ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 18 Mar 2015 13:51:45 +0100Polar plot like matplotlib out of the box in Sage?https://ask.sagemath.org/question/26238/polar-plot-like-matplotlib-out-of-the-box-in-sage/Is there a way to plot something like this: http://matplotlib.org/examples/pylab_examples/polar_demo.html i.e. with these fancy polar axes out of the box in Sage. Or should I invoke matplotlib directly?PetrWed, 18 Mar 2015 13:51:45 +0100https://ask.sagemath.org/question/26238/Polar 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?EugeneFri, 06 Mar 2015 13:45:48 +0100https://ask.sagemath.org/question/26044/