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?

1 | initial version |

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?

2 | No.2 Revision |

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?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.