Ask Your Question

Angular gridlines in sage plot

asked 2011-06-10 10:47:25 -0600

Yayu gravatar image

updated 2011-06-10 10:48:04 -0600

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


for some graphics object L. Now I want to rotate just the y axis gridline by 30 degrees. How can I do it? Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-06-17 04:41:59 -0600

pang gravatar image

I 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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-06-10 10:47:25 -0600

Seen: 133 times

Last updated: Jun 17 '11