Ask Your Question
1

Plot y-axis scale

asked 2017-01-02 04:49:11 -0500

Aeid gravatar image

Hello,

I have to plot two list of points in 2D. the point is that the y-axis of these points are very close to each other and when I plot them in Sage, they look the same and cannot differentiate them. Moreover, one list should have higher y-values than the other as their x-value is greater than 50, but I can not see this because of the small scale of the y-axis.

Any help how to make the y-axis larger so I can see the differences?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-01-02 06:32:18 -0500

tmonteil gravatar image

You can set ymin and ymax to narrow the y-axis and xmin and xmax to shift the x-axis. You can also play with the aspect_ratio parameter.

edit flag offensive delete link more

Comments

As a comment, one should note that the ymin and ymax and aspect_ratio parameters are part of the "show" method, not of the actual graphics object itself. If you just want a larger graphic, period, you could use the figsize keyword.

kcrisman gravatar imagekcrisman ( 2017-01-02 09:54:09 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-01-02 04:49:11 -0500

Seen: 71 times

Last updated: Jan 02