How to plot lattice paths ?
I have seen that the command
for D in DyckWords(n): D.pretty_print(type="NE-SE")
gives a nice plot of all Dyck paths.
Is there an analogous command for the set of all 2^n lattice paths of length n with up- and downsteps of height 1? Please give details, I am a newcomer to SAGE.Sage.
Edit: Sorry, if my question is not properly formulated. Perhaps I should modify my question somewhat:
The command
D=DyckWords(6)[3]
D.pretty_print(type="NE-SE")
gives a nice picture (which I unfortunately cannot copy)
of the Dyckpath corresponding to [1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0]
by interpreting 0 with a down-step and 1 with an up-step.
How can I print a corresponding picture for a word which corresponds to a path with negative values?