> Cool. Any reason we couldn't just detect the standard plot() command
> in a PLOT section?
Technically, I guess that everything is possible. Now, the immediate
reason is that this is implemented through something called a "sphinx
directive" , and that I have not figured out how to write one from
Thus, what we use currently is the 'plot directive'  implemented in
matplotlib. Not surprisingly, it is made to work for.... matplotlib
drawings. And this is what limits us at the moment.
For this reason, when using that directive in Sage we must use some
function called 'draw_sphinx' outputs <the Sage object we want to
plot> to a .jpg file, then loads that .jpg file with matplotlib. If we
can do the same with .pdf file we are good.
And if we want something more 'native' we will need to implement a
sphinx directive ourselves. I tried, and I was scared :-P