Ask Your Question

non monometric axes

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

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 12:55:41 +0200 )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 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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 08:59:55 +0200

Seen: 335 times

Last updated: Apr 13 '19