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, 12 Mar 2019 14:02:55 +0100dimensions of imagehttps://ask.sagemath.org/question/45765/dimensions-of-image/ I am having a little trouble when trying to specify the dimensions of a poset which I wish to see the graph of. I use name.show(figsize=[x,y]) but it's not giving me the expected image since it's only conserving the ratio, so it leaves off the y variable. If I wish to see the graph of the poset with dimensions 8x10, it should let me do so with the option figsize=[8,10], but it does not.
Can anyone help me with this issue?
Thank you in advance.Tue, 12 Mar 2019 02:10:26 +0100https://ask.sagemath.org/question/45765/dimensions-of-image/Answer by Juanjo for <p>I am having a little trouble when trying to specify the dimensions of a poset which I wish to see the graph of. I use name.show(figsize=[x,y]) but it's not giving me the expected image since it's only conserving the ratio, so it leaves off the y variable. If I wish to see the graph of the poset with dimensions 8x10, it should let me do so with the option figsize=[8,10], but it does not.</p>
<p>Can anyone help me with this issue?</p>
<p>Thank you in advance.</p>
https://ask.sagemath.org/question/45765/dimensions-of-image/?answer=45766#post-id-45766Try `name.show(figsize=8,aspect_ratio=10/8)` and then adjust the values of `figsize` and `aspect_ratio` to fit your needs.Tue, 12 Mar 2019 03:06:20 +0100https://ask.sagemath.org/question/45765/dimensions-of-image/?answer=45766#post-id-45766Comment by Stiven for <p>Try <code>name.show(figsize=8,aspect_ratio=10/8)</code> and then adjust the values of <code>figsize</code> and <code>aspect_ratio</code> to fit your needs.</p>
https://ask.sagemath.org/question/45765/dimensions-of-image/?comment=45771#post-id-45771Juanjo you are a lifesaver! I googled this and searched a lot but had no luck. I really appreciate your help given. I owe you my life.Tue, 12 Mar 2019 14:02:55 +0100https://ask.sagemath.org/question/45765/dimensions-of-image/?comment=45771#post-id-45771