C Y disse:
> Openplot in Xmaxima is the only embedded plotting I am aware of
> currently for any Maxima front end, but in the end you might find it
less than satisfying. It's resizing is haphazard, scrolling (last time
I used it at least) is not smooth, and you don't have any of the
advanced gnuplot specific options Maxima is capable of. Also, you
cannot output a pdf with the graph embedded - you will have to put
together a separate document.
I had already noticed the resizing and scrolling issues. Regarding
embedding, though, right now what I do is create the graph, use the "Save"
option from the menu, and then insert it as an image in the document. That
seems to work.
> [Note to myself and Jay - would it be possible to have emaxima mode
automatically insert an appropriate link to a gnuplot output file? This
wouldn't be (quite) embedded graphics but it would result in a situation
where latexing the emaxima doc would have the correct graph included in
the output automatically.]
This does not seem hard to do, and it would be a great improvement.
Perhaps it could use an instrution like:
plot2d(sin(x),[x,-10,10],[plot_option,embed])
That way, we could control when we want the graphics embedded, and
frontends (TeXmacs, emaxima) could react accordingly? (I'm just guessing
here, though)
>> I have yet not found a way to produce embedded graphics in TeXmacs. If
I do, I'll post it for the records.
>
> I am intrigued by your description of gnuplot mode in TeXmacs - is
TeXmacs+gnuplot indeed both embedded and interactive? If this is the
case, it would be much more ideal for TeXmacs to redefine the gnuplot
commands in Maxima to redirect the handling of it to a separate, perhaps
specialized embedded gnuplot session - this would result in an
environment much closer to Maple for graphics. I wasn't aware TeXmacs
gnuplot mode could do this though - if it can I would very much like to
look into this! If we can hook Maxima into that routine... drool.
Well, Gnuplot does embed graphics. You can check it in a file I just
created. My only four actions were "Insert > Session > Gnuplot", "plot
sin(x)", "splot sin(x)*tan(y)", and "File > Export > PDF":
http://gatonegro.co.nr/var/gnu-texmacs.pdfhttp://gatonegro.co.nr/var/gnu-texmacs.tm
(View them through XPDF, for GPDF does not render them well)
However -- and to my knowledge, but I am as new to this as I am to TeXmacs
and Maxima -- they seem to lose their dynamic capabilities for being
resized and spinned (I'm talking about 3D graphs here).
Still, as you can see, the result is really nice. And the graphics
produced by Maxima (through Gnuplot) cannot be rotated either. So, in the
end, the Gnuplot embedded graphics are like Maxima non-embedded ones, but
nicer, smoother (I believe they use Postscript directly) and embedded in
the document.
It would be nice if Maxima could work the same way. :o)
Denís.
#######################################
# Denís Fernández Cabrera #
# Correo, Jabber: #
# Güeb: <http://gatonegro.co.nr>; #
#######################################
[ Por favor, acusa recibo. ]
[ Please confirm reception. ]