On Mon, 2006-06-05 at 22:04 +0300, Vadim V. Zhytnikov wrote:
> The trouble is omplotdata's design
> namely the following line near the end of the script
>
> lappend omcommand [exec cat [lindex $argv 0]]
>
> This command appends contents of the text
> file maxout.openmath to the name of certain tcl function.
OK, if you'd like I can take over that problem; I had to learn
some TCL already, and I have already done a starpack for a
modified version of xmaxima, a few months ago.
I ran across that same problem on introducing plotdf in version
5.9.2. I had to modify that line, in plotting/footer.tcl, by the
following TCL code:
if { [lindex $argv 0] == "plotdf" } {
lappend omcommand "plotdf"
} else {
lappend omcommand [exec cat [lindex $argv 0]]
}
thus, plotdf does not use a file but it passes all its information via
command line options.
The same can be done for plot2d, plot3d and openplot_curves. Look at an
example on how to call plot2d without an auxiliary file:
http://fisica.fe.up.pt/maxima/plot2d.html
what comes after the -data option is exactly the contents of the file
maxout.openmath created by
(%i1) plot2d(sin(x),[x,0,7],[plot_format,openmath]);
If you open that page in xmaxima's web browser (in Linux, because the
web browser is currently broken in Windows), you can click on that large
command and will get the plot.
The problem might be that Windows and/or Linux might not accept such a
long command-line, and that might be why the maxout.openmath file was
introduced. I will check it out to see if it is possible.
Cheers,
Jaime