Ask Your Question
0

Poset plot is upside-down

asked 10 years ago

mgass gravatar image

updated 10 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 10 years ago

FrédéricC gravatar image

You can use

D.dual().plot()
Preview: (hide)
link

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 ( 10 years ago )

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: 10 years ago

Seen: 870 times

Last updated: Dec 29 '14