Ask Your Question

non monometric axes

asked 2019-04-13 01:59:55 -0600

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


Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2019-04-13 05:55:41 -0600 )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 05:56:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-04-13 06:48:31 -0600

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:, 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


Asked: 2019-04-13 01:59:55 -0600

Seen: 70 times

Last updated: Apr 13 '19