Ask Your Question
0

non monometric axes

asked 2019-04-13 08:59:55 +0100

Hi, during plotting a simple 2d function, I get the right range written for x axis (ex. -5,5) but the y axis seems to be "expanded" to 100...So, how can I get the same range (-5,5) for y axis?

Thank you

edit retag flag offensive close merge delete

Comments

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2019-04-13 12:55:41 +0100 )edit

Please provide an example that others can paste in a fresh Sage session to reproduce the problem.

This makes it a lot easier for others to explore the problem, increasing the chances of a fast answer.

slelievre gravatar imageslelievre ( 2019-04-13 12:56:46 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-13 13:48:31 +0100

slelievre gravatar image

The solution to this problem is probably to specify ymin and ymax.

For example:

sage: p = plot(lambda x: 1/x, (-5, 5))
sage: p.show(ymin=-5, ymax=5)
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: 2019-04-13 08:59:55 +0100

Seen: 499 times

Last updated: Apr 13 '19