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.Mon, 24 Feb 2020 11:38:45 +0100Gridlines, ticks and the like in polar coordinateshttps://ask.sagemath.org/question/50045/gridlines-ticks-and-the-like-in-polar-coordinates/Hello to everyone,
I'd like to produce a polar plot with thecorresponding "polar grid" in it (i.e. the lines corresponding to $\theta = $ constant, and the circles $r = $ constant appearing. Also, I would like to have something like the tick markers. I guess I could do something like this manually, but seems very unelegant... An idea?
JCMon, 24 Feb 2020 03:14:11 +0100https://ask.sagemath.org/question/50045/gridlines-ticks-and-the-like-in-polar-coordinates/Answer by eric_g for <p>Hello to everyone,</p>
<p>I'd like to produce a polar plot with thecorresponding "polar grid" in it (i.e. the lines corresponding to $\theta = $ constant, and the circles $r = $ constant appearing. Also, I would like to have something like the tick markers. I guess I could do something like this manually, but seems very unelegant... An idea?</p>
<p>JC</p>
https://ask.sagemath.org/question/50045/gridlines-ticks-and-the-like-in-polar-coordinates/?answer=50046#post-id-50046For the gridlines, you can do:
sage: E = EuclideanSpace(2)
sage: polar.<r, theta> = E.polar_coordinates()
sage: polar.plot(E.cartesian_coordinates())
![image description](/upfiles/15825405585092051.png)
See [this page](https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/chart.html#sage.manifolds.chart.RealChart.plot) for all plot options. For instance:
sage: polar.plot(E.cartesian_coordinates(), number_values={r: 9, theta: 17}, color='green')
![image description](/upfiles/15825407096558622.png)Mon, 24 Feb 2020 11:38:45 +0100https://ask.sagemath.org/question/50045/gridlines-ticks-and-the-like-in-polar-coordinates/?answer=50046#post-id-50046