You can find an example for adding text to a 2d-plot at
http://www.sagemath.org/doc/tut/node18.html
or type
sage: text?
at the command line.
>
> Thanks!
>
> Chris
>
> >
>
AFAIK this is just not implemented (yet). It should be relatively easy as
matplotlib supports it. Volunteers?
Cheers,
Martin
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinr...@jabber.ccc.de
As it turns out, my comment was wrong. This works:
sage: p = plot(sin,-pi,pi)
sage: p.axes_labels(['foo','bar'])
sage: p.show()
Cheers,
Martin
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinr...@jabber.ccc.de
To the best of my knowledge at present absolutely nobody is
working in a concerted way on 2d or 3d plotting in Sage right now.
Mike Hansen did a lot of useful cleanup, but has moved onto
sphinx-ify the documentation, which is higher priority.
I had hoped Emily Kirkman would work on plotting this summer,
and after, but she has ended up working on different things.
I had also hoped something longterm regarding plotting would
come out of Sage Days 9, but that didn't happen due to the
organization of that meeting.
I'll keep my eyes open for a student to hire at UW to work
on plotting, but so far I don't know of anybody qualified
and interested yet.
-- William
> Just search the support list for "legend".
> I use pylab from within Sage for any more sophisticated plotting. It
> works great. It would be nice if the Sage plot function would take all
> the options of pylab plots. No idea how hard it would be to implement
> it.
>
> Stan
>
> On Oct 5, 7:18 pm, Martin Albrecht <m...@informatik.uni-bremen.de>
> wrote:
>>
>> As it turns out, my comment was wrong. This works:
>>
>> sage: p = plot(sin,-pi,pi)
>> sage: p.axes_labels(['foo','bar'])
>> sage: p.show()
>>
>> Cheers,
>> Martin
>>
>> --
>> name: Martin Albrecht
>> _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
>> _www:http://www.informatik.uni-bremen.de/~malb
>> _jab: martinralbre...@jabber.ccc.de
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
Gee, I wish I was a student at UW! :). I really appreciate the effort
various people have put into the plotting framework. The NotImplemented
parts have bothered me for a while (as well as some of the framework
itself), but I haven't had time to do an overhaul, though I've made some
somewhat meager attempts at starting. If someone were to spearhead such
a thing, I'd like to be involved. I don't see the time in my future for
spearheading such a thing until possibly next April/May at the earliest.
Mike's improvements to plot.py (both his cleanup and his patch for
options decorators) make such an overhaul much easier. Kudos and a
candy bar to him.
Thanks,
Jason