kcrisman wrote:
> 
> 
> On Sep 27, 10:48 pm, Marshall Hampton <hampto...@gmail.com> wrote:
>> I don't think there is such a thing in Sage right now, but its not
>> hard to make something like that.  For example:
>>
>> def pline(rt_list):
>>     '''
>>     Returns line segments passing through the given list of points
>>     in polar coordinates.
>>     '''
>>     cart_list = [[x[0]*cos(x[1]),x[0]*sin(x[1])] for x in rt_list]
>>     return line(cart_list)
>>
>> I'm not sure what a good name for that would be, "pline" is pretty
>> bad.
>>
> 
> Mathematica has something like this, or at least to plot polar points,
> called ListPolarPlot.  Something similar and with line support would
> not be difficult, I think Marshall is right.
> 
> We are tracking this request here:
> http://trac.sagemath.org/sage_trac/ticket/7050
\



Please note that matplotlib already addresses these issues.  See, for 
example, this discussion:

http://www.mail-archive.com/matplotlib-de...@lists.sourceforge.net/msg04785.html

We just have to change our polar plots to use the matplotlib polar 
plotting mechanism.  That's something I've been meaning to do anyway, 
especially now that we use the matplotlib axes instead of our own.  I 
probably won't get to it in the near future, though.  Someone else is 
more than welcome to do it.

Basically, right now, our "polar plots" are just normal plots with the 
coordinates undergoing the polar transformation on each point.  I think 
it might be good to change this so that our polar plots actually use the 
polar projection to give matplotlib polar plots.  See


Examples of matplotlib polar plots:

http://matplotlib.sourceforge.net/examples/pylab_examples/polar_bar.html
http://matplotlib.sourceforge.net/examples/pylab_examples/polar_demo.html
http://matplotlib.sourceforge.net/examples/pylab_examples/polar_scatter.html

or more exciting stuff that is currently in matplotlib and being refined:

http://matplotlib.sourceforge.net/examples/axes_grid/demo_curvelinear_grid.html

http://matplotlib.sourceforge.net/examples/axes_grid/demo_floating_axis.html

Thanks,

Jason


-- 
Jason Grout


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to