Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can sage draw simplicial complexes?

I understand it's asking a lot to draw complexes in dimensions $>3$, but for (fairly simple) 2 dimensional complexes, it seems reasonable that some plotting algorithm should exist. Even looking at, say, simplicial_complexes.Torus(), it doesn't seem like there's a plot or show method. The docs1 don't seem to have any information either.

Since the things I'm trying to draw are fairly simple, I would be wiling to plot the $1$-skeleton (which sage can do) and then fill in the $2$-cells myself, but I'm not even sure how to go about doing that. Obviously if there is a pre-existing method or library for this, that would be the best possible solution.

Thanks in advance!

1: I don't have the karma to post links, but I'm referencing doc.sagemath.org/html/en/reference/homology/sage/homology/simplicial_complex.html