On Thu, Oct 16, 2003 at 09:39:36PM +0200, Ernesto Tapia wrote:
>
> I have some questions: Is it possible to save the graphic output
> obtained by plot in a determined file, i.e. to specify the output's
> file name? Can I specify the size (width x height) of such an output?
Hi Ernesto,
interactively, you can do that from the "Config" menu that appears
when you put the cursor on the top left corner of the openplot window.
Follow the "Print options" link and then use "Save" in the main menu.
If you want a script to pass those options to plot2d, you can create a
coustomized version of omplotdata. "omplotdata" is a tcl/tk script
used to produce the plots. It accepts several options (those options
you can change in the menu) but the way the script is currently being
used in Maxima, it will not pass those options to plot2d.
For instance, to make the script run the "plotdf" function (plot ODE
direction fields) with some options I pass, I changed the very last
line in omplotdata from:
omPlotAny [exec cat [lindex $argv 0]]
to:
plotdf -dydx x -width 600 -bbox "0 0 12 10"
That way I can even plot the direction field I want, using maxima's
openplot, without even having to run Maxima.
In my system, omplotdata lives in /usr/lib/maxima/5.9.0/omplotdata
in windows it can be easily found somewhere on directory where maxima
is installed. If you examine the tcl script, you will easily fiedn the
command-line options you need.
Cheers,
Jaime