ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 30 Nov 2021 10:15:22 +0100scale of the axishttps://ask.sagemath.org/question/60010/scale-of-the-axis/hi
i can not understand why my two graphics :
[link text](http://lemathoscope.com/LWS_FTP/jupyter/pourquoi.html)
do not have the same scales, whereas the code is quite exactly the same
as if a plot would automatically fit something
i believe that this correct the pb :
aspect_ratio=1
but just wanted to understand the behaviour
VinzTue, 30 Nov 2021 01:02:37 +0100https://ask.sagemath.org/question/60010/scale-of-the-axis/Answer by eric_g for <p>hi</p>
<p>i can not understand why my two graphics :</p>
<p><a href="http://lemathoscope.com/LWS_FTP/jupyter/pourquoi.html">link text</a></p>
<p>do not have the same scales, whereas the code is quite exactly the same</p>
<p>as if a plot would automatically fit something</p>
<p>i believe that this correct the pb :</p>
<pre><code>aspect_ratio=1
</code></pre>
<p>but just wanted to understand the behaviour</p>
<p>Vinz</p>
https://ask.sagemath.org/question/60010/scale-of-the-axis/?answer=60016#post-id-60016It's because `circle()` in the first plot enforces `aspect_ratio=1.0`, as you can see by taking a look at the source code via `circle??`:
@options(alpha=1, fill=False, thickness=1, edgecolor='blue', facecolor='blue',
linestyle='solid', zorder=5, legend_label=None, legend_color=None,
clip=True, aspect_ratio=1.0)
def circle(center, radius, **options):
...
Tue, 30 Nov 2021 10:15:22 +0100https://ask.sagemath.org/question/60010/scale-of-the-axis/?answer=60016#post-id-60016