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, 29 Dec 2014 16:30:12 -0600Poset plot is upside-downhttp://ask.sagemath.org/question/25359/poset-plot-is-upside-down/ Tried the following in smc
X = (24).divisors()
R = [(a,b) for a in X for b in X if a.divides(b)]
D = Poset([X,R])
D.plot()
The resulting plot is upside-down; that is "1" is at the top and "24" at the bottom.
How can I fix this?Mon, 29 Dec 2014 10:01:23 -0600http://ask.sagemath.org/question/25359/poset-plot-is-upside-down/Answer by FrédéricC for <p>Tried the following in smc</p>
<p>X = (24).divisors()</p>
<p>R = [(a,b) for a in X for b in X if a.divides(b)]</p>
<p>D = Poset([X,R])</p>
<p>D.plot()</p>
<p>The resulting plot is upside-down; that is "1" is at the top and "24" at the bottom.
How can I fix this?</p>
http://ask.sagemath.org/question/25359/poset-plot-is-upside-down/?answer=25361#post-id-25361You can use
D.dual().plot()Mon, 29 Dec 2014 11:58:45 -0600http://ask.sagemath.org/question/25359/poset-plot-is-upside-down/?answer=25361#post-id-25361Comment by mgass for <p>You can use</p>
<pre><code>D.dual().plot()
</code></pre>
http://ask.sagemath.org/question/25359/poset-plot-is-upside-down/?comment=25363#post-id-25363That flips it over, but the arrows point in the wrong direction.
According to the documentation, plot applied to a poset should be bottom to top with arrows pointed up.Mon, 29 Dec 2014 16:30:12 -0600http://ask.sagemath.org/question/25359/poset-plot-is-upside-down/?comment=25363#post-id-25363