Thanks so much, Sébastien. I `sage -i dot2tex`-ed on 9.6.beta5 and that fixed the problem. Is this something that should be included in the documentation? If so, I can open a ticket and add it, but where do you suggest I do so? The documentation for `view()` <https://doc.sagemath.org/html/en/reference/misc/sage/misc/latex.html#sage.misc.latex.view> seems like too generic of a spot, and as far as I can tell, there is no `Poset.view` method in the documentation. One option would be to add a view method, but that may conflict with the show method and cause confusion.
On Friday, April 15, 2022 at 9:54:52 AM UTC-5 Sébastien Labbé wrote: > Also, now that #20343 is in Sage (9.6.beta7). If graphviz is installed > and `sage -i dot2tex` as well, one can do: > > sage: P = Poset((SetPartitions(4), lambda A,B: A in B.refinements())) > sage: from sage.misc.latex_standalone import TikzPicture > sage: TikzPicture.from_poset(P, prog='dot').pdf() > > The dot graphviz program places the nodes in a tree like form. Valid > values for prog are ['dot', 'twopi', 'neato', 'circo', 'fdp'], but they do > not create as nice pictures: > > sage: TikzPicture.from_poset(P, prog='neato').pdf() > > The `from_poset` method is marked as experimental and prints warnings when > you use it since it will move in the future within the class Poset. See > https://trac.sagemath.org/ticket/33002 > > > > > On Friday, April 15, 2022 at 3:53:53 PM UTC+2 Trevor Karn wrote: > >> Thanks Sébastien, I’ll upgrade and see if that fixes it. >> >> >> >> On Fri, Apr 15, 2022 at 7:56 AM Sébastien Labbé <sla...@gmail.com> wrote: >> >>> On 9.6.rc0, I am not able to reproduce the issue. The command >>> `view(Poset((SetPartitions(4), lambda A,B: A in B.refinements())))` produce >>> a nice looking picture level by level. >>> Sébastien >>> >>> On Friday, April 15, 2022 at 3:17:11 AM UTC+2 Trevor Karn wrote: >>> >>>> Hi all, >>>> >>>> I have tried to create a nice image of a Hasse diagram (of the set >>>> partitions of {1,2,3,4}) using the command `view(Poset((SetPartitions(4), >>>> lambda A,B: A in B.refinements())))` >>>> as suggested in these notes by Mike Zabrocki >>>> <https://garsia.math.yorku.ca/~zabrocki/math4160f19/notes/ch7_mobius_inversion.pdf> >>>> . >>>> >>>> However, when I try, things come out looking a bit messy (image >>>> attached). The problem doesn't seem to be with the latex compiler on my >>>> end, since (e.g.) the complete bipartite graph comes out looking just fine >>>> using `view(graphs.CompleteBipartiteGraph(*3*,*3*))`. >>>> >>>> Does this seem like a bug, or are there some configurations wrong on my >>>> end? >>>> >>>> Thanks, >>>> Trevor >>>> >>>> >>>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "sage-devel" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/sage-devel/rV9qfPdtelU/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> sage-devel+...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/sage-devel/b7bf3ffd-383d-45a5-93bf-31ac274c4cc2n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/sage-devel/b7bf3ffd-383d-45a5-93bf-31ac274c4cc2n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> Best, >> >> Trevor >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/ce921130-9868-4b95-b79d-b7abde956d4dn%40googlegroups.com.