Ask Your Question
1

Plot y-axis scale

asked 8 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 8 years ago

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.

Preview: (hide)
link

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 ( 8 years ago )

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: 8 years ago

Seen: 3,330 times

Last updated: Jan 02 '17