Ask Your Question

# non monometric axes

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 close merge delete

## Comments

Welcome to Ask Sage! Thank you for your question.

( 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.

( 2019-04-13 12:56:46 +0200 )edit

## 1 Answer

Sort by ยป oldest newest most voted

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)

more

## Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

## Stats

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

Seen: 302 times

Last updated: Apr 13 '19