On Fri, 11 Mar 2016, Pierre wrote:

This is from the documentation of the plot method of the Digraph class:

sage: T = list(graphs.trees(7))
sage: t = T[3]
sage: t.plot(heights={0:[0], 1:[4,5,1], 2:[2], 3:[3,6]})

The result (on SMC, and I think it used to be the same on my local sage) is not what I expected at all: perhaps I misunderstand the 'heights' option, bu
t I thought that the vertices 3 and 6, for example, would be on the same hor
izontal line, as would be 4, 5, 1. Not the case for me at all !

I can confirm this. I know that this may depend on dot2text, installing it may make difference.

For example after t = Posets.PentagonPoset().hasse_diagram() the height-option makes nothing. Except that it does, if you use option layout='acyclic'.

I am afraid that you must directly use .set_pos() on the graph.

--
Jori Mäntysalo

Reply via email to