Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, it's possible to integrate matplotlib plots in my latex document using sagetex. But first: there's no code here to see what is wrong. A message "Unknown environment "sagesilent" sounds like you haven't put \usepackage{sagetex} in the preamble (or maybe you haven't been able to successfully get latex and Sage to communicate. Also it sounds like you've used printfig when that command isn't available to you.

You can find a working example of sagetex with mathplotlib over on TeXStackExchange here: the answer by DJP has code you can copy/paste along with the working output that results.

Yes, it's possible to integrate matplotlib plots in my latex document using sagetex. But first: there's no code here to see what is wrong. A message "Unknown environment "sagesilent" sounds like you haven't put \usepackage{sagetex} in the preamble (or maybe you haven't been able to successfully get latex and Sage to communicate. Also it sounds like you've used printfig when that command isn't available to you.you--and you should indent 4 spaces for code to show up nicely formatted in your question.

You can find a working example of sagetex with mathplotlib over on TeXStackExchange here: the answer by DJP has code you can copy/paste along with the working output that results.