Ask Your Question
0

Angular gridlines in sage plot

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

Yayu gravatar image

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

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

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

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

Stats

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

Seen: 143 times

Last updated: Jun 17 '11