sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.31k stars 451 forks source link

Make plotting single polar points or lines easy #7050

Open kcrisman opened 14 years ago

kcrisman commented 14 years ago

See http://groups.google.com/group/sage-support/browse_thread/thread/ad0294c057ddc462/6b9b4092034359c4?show_docid=6b9b4092034359c4 for the original request.

Probably the best thing to do is have both plotting of lines and individual points using polar coordinates as options. This should not be too hard, but should be named consistently with other plotting functions.

Component: graphics

Keywords: plot, polar

Issue created by migration from https://trac.sagemath.org/ticket/7050

jasongrout commented 14 years ago
comment:2

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

http://www.mail-archive.com/matplotlib-devel@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