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.Fri, 17 Jun 2011 11:41:59 +0200Angular gridlines in sage plothttps://ask.sagemath.org/question/8159/angular-gridlines-in-sage-plot/My ubuntu sage installation still has some problems. So I installed it on my mac to get started. I was wondering if there is some way to make non-vertical gridlines in Sage.
For example, I used
show(L,gridlines=True)
for some graphics object L. Now I want to rotate just the y axis gridline by 30 degrees. How can I do it? Thanks.Fri, 10 Jun 2011 17:47:25 +0200https://ask.sagemath.org/question/8159/angular-gridlines-in-sage-plot/Answer by pang for <p>My ubuntu sage installation still has some problems. So I installed it on my mac to get started. I was wondering if there is some way to make non-vertical gridlines in Sage. </p>
<p>For example, I used </p>
<p>show(L,gridlines=True)</p>
<p>for some graphics object L. Now I want to rotate just the y axis gridline by 30 degrees. How can I do it? Thanks.</p>
https://ask.sagemath.org/question/8159/angular-gridlines-in-sage-plot/?answer=12438#post-id-12438I don't know any option to do that at once, but you can use something like:
var('x y')
line = 2*x + y
p = plot(...)
grid = sum(implicit_plot(line+k,...) for k in srange(-1,1,0.2))
(p + grid).show()
to add the grid manually.
Fri, 17 Jun 2011 11:41:59 +0200https://ask.sagemath.org/question/8159/angular-gridlines-in-sage-plot/?answer=12438#post-id-12438