\(\newcommand{\identity}{\mathrm{id}} \newcommand{\notdivide}{{\not{\mid}}} \newcommand{\notsubset}{\not\subset} \newcommand{\lcm}{\operatorname{lcm}} \newcommand{\gf}{\operatorname{GF}} \newcommand{\inn}{\operatorname{Inn}} \newcommand{\aut}{\operatorname{Aut}} \newcommand{\Hom}{\operatorname{Hom}} \newcommand{\cis}{\operatorname{cis}} \newcommand{\chr}{\operatorname{char}} \newcommand{\Null}{\operatorname{Null}} \newcommand{\vec}[1]{\mathbf{#1}} \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section4.2Using sageplot to create images

Consider Figure 3.2.1.

Here is an figure that contains an image created by sage. The same code as in the second sage cell example is enclosed within a \( \texttt{sageplot}\) tag. However, instead of the last expression being G.show(), the show method is dropped G is the result. In other words, the processor for creating the images needs a graphics expression, not the image the graphics produce.

This command creates svg files from this specific document:

python script/mbx -c sageplot -d ~/Documents/uml-mbx/src/images -f svg -vv ~/Documents/uml-mbx/src/sage.xml

Currently, the script must be run so that the current directory is mathbook. The image that is produced eventually should reside in a directory called images that is in the same directory as the source code.

A two set Venn Diagram for union
Figure4.2.1Venn Diagram for the union \(A \cup B\)

Where should your images go? The python command above actually puts figures in the source code directory, in a directory called \( \texttt{images}\) If you are going to convert your source code to html, the images directory should be moved to the same directory as the html files.