#17498: Pictures in the doc through ".. plot::" directive
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.5
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers:
documentation | Work issues:
Keywords: | Commit:
Authors: | 42a0b5a8a3af4789388810c0f92ecd13aceb80dc
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
public/17498 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by ncohen):
Hello !
> How much time does this add to the doc build?
Well, nothing I guess if nobody uses it. Then it will depend on how many
pictures we add.
> Which reminds me, update developer manual, please :-)
Do you mean that I should update this ticket with #17508 one way or
another ? Review one, I will update the other :-P
> Again, I am wondering whether this works with other plots, like
`plot(sin(x),(x,0,pi))` or something. Yes, I am too tired to try it now.
Load the 'sphinx_plot' function in Sage. If it does not raise an exception
on the object you give it then it works. All that is necessary is to turn
this thing into a .png, that's all.
> But whatever is implemented should be robust in that sense, even if it's
our fault for having several different ways to plot things (plotting with
`plot()` versus `.plot()` methods).
I don't totally grasp the dichotomy you have in mind `:-P`
> I wonder also about importing mpl every time. Maybe once it's already
imported it's not a big deal, but if there was one such import per file in
the reference manual that could add quite a bit of time (I realize that
assumes people have put such things in). You're sure you can't change the
margins or layout before doing the `savefig` in the `StringIO` version?
Too bad.
Well, I was not able to.. It must be possible I expect, but well `O_o`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/17498#comment:37>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.