On Jan 2, 2008 3:48 AM, lwd <[EMAIL PROTECTED]> wrote:
>
> On Jan 2, 7:41 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> >
> > It would be better to try
> > sage: maxima.eval(...)
> > above.
> >
> I tried maxima.eval('plot2d(...)'), returns 'sage1', but no plot.
> sage: maxima.eval('plot2d(...)')
> 'sage1'
That's weird. Can you post the _exact_ input
and output from a complete session where you get
sage1 as the output from maxima.eval('...')? Thanks.
>
> > Do
> > sage: octave.eval(...)
> > that is equivalent to just typing in the contents of eval to octave. Doing
> > sage: foo = octave(...)
> > is different -- it makes a Python object that wraps an octave object -- this
> > makes no sense if ... doesn't evaluate to an octave object.
> >
>
> octave.eval(...) works FINE! Thanks for remarks.
>
> >
> > In that case, here's a quick remark. You can easily just draw the above
> > plots
> > in Sage directly, without using any of gnuplot/maxima/octave at all:
> >
> > show(plot([-7.5/-0.5*(x-0.5)+8, -7.5/7.5*(x-0.5)+8, \ ...
>
> Unfortunately I need a more 'sophisticated' graph; with grid, legend
> (if possible) and ... blah blah blah so your suggestins and comments
> below shows the way I'll 'dig'.
You can use the full functionality of matplotlib (which is 100%
of matlab 2d graphics) from in sage via
sage: import pylab
Note -- you may have to be careful to convert some numbers
to floats to make matplotlib happy.
William
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---