Ask Your Question
0

non monometric axes

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

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 05:55:41 -0500 )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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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 01:59:55 -0500

Seen: 17 times

Last updated: Apr 13