ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 02 Jan 2017 09:54:09 -0600Plot y-axis scalehttp://ask.sagemath.org/question/36143/plot-y-axis-scale/ 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?
Mon, 02 Jan 2017 04:49:11 -0600http://ask.sagemath.org/question/36143/plot-y-axis-scale/Answer by tmonteil for <p>Hello,</p>
<p>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.</p>
<p>Any help how to make the y-axis larger so I can see the differences?</p>
http://ask.sagemath.org/question/36143/plot-y-axis-scale/?answer=36145#post-id-36145You 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.
Mon, 02 Jan 2017 06:32:18 -0600http://ask.sagemath.org/question/36143/plot-y-axis-scale/?answer=36145#post-id-36145Comment by kcrisman for <p>You can set <code>ymin</code> and <code>ymax</code> to narrow the y-axis and <code>xmin</code> and <code>xmax</code> to shift the x-axis. You can also play with the <code>aspect_ratio</code> parameter.</p>
http://ask.sagemath.org/question/36143/plot-y-axis-scale/?comment=36146#post-id-36146As 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.Mon, 02 Jan 2017 09:54:09 -0600http://ask.sagemath.org/question/36143/plot-y-axis-scale/?comment=36146#post-id-36146