Helloooooooooooo,

> 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" [1], and that I have not figured out how to write one from
scratch.

Thus, what we use currently is the 'plot directive' [2] 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

Nathann

[1] http://sphinx-doc.org/rest.html#directives
[2] http://matplotlib.org/sampledoc/extensions.html#inserting-matplotlib-plots

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to