Ask Your Question
0

Poset plot is upside-down

asked 2014-12-29 10:01:23 -0600

mgass gravatar image

updated 2014-12-29 16:34:00 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-12-29 11:58:45 -0600

FrédéricC gravatar image

You can use

D.dual().plot()
edit flag offensive delete link more

Comments

That 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.

mgass gravatar imagemgass ( 2014-12-29 16:30:12 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-12-29 10:01:23 -0600

Seen: 42 times

Last updated: Dec 29 '14