First time here? Check out the FAQ!

Ask Your Question
0

Angular gridlines in sage plot

asked 13 years ago

Yayu gravatar image

updated 13 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 13 years ago

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.

Preview: (hide)
link

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: 13 years ago

Seen: 437 times

Last updated: Jun 17 '11