Ask Your Question

Revision history [back]

I'm not aware of a Sage command for this, but I have three ideas for how to do it:

  • Use matplotlib: Sage does a lot of its plotting under the hood with matplot lib. If all of the things you're drawing are produced using matplot lib internally, then you could try to get the underlying matplotlib objects and combine them using its (extensive) functionality. [You could check the source code to see whether there are some internal methods to get the matplot lib objects.]

  • Use PIL: Sage includes the Python Image Library, so you could try to use it to overlay the different images.

  • Use ImageMagick (convert): This isn't included with Sage, but is standard on many *nix systems. Save the individual images, and then make a montage.