On 10/4/07, Edwin Woollett <woollett at charter.net> wrote:
> Using windows xp, maxima v 5.13a, and inside XMaxima, I try:
> ------------------------
> %i7) plot2d( x^2 - 5.0, [ x, -5, 5 ], [ gnuplot_preamble, "set
> eroaxis" ],
> [ gnuplot_term, jpeg ], [ gnuplot_out_file,
> "c/work2/root1.jpg" ] ) $
> Output file "c/work2/root1.jpg".
> ---------------------
> But no file appears in that directory or elsewhere (as far as I can tell).
> Maybe my syntax is wrong?
> I have no problem creating *.eps files, replacing "jpeg" with "ps",
> and "jpg" with "eps".
Ted, from what I can tell, Gnuplot cannot actually create jpeg files
(despite the claim to the contrary in the Maxima documentation
for plot_options).
Try running Gnuplot by itself. You can get a list of available
output types by entering "set term". Is jpeg on the list?
Try entering "set term jpeg". I find that triggers an error message
from Gnuplot ("unknown or ambiguous terminal type").
My guess is that Xmaxima swallowed the error message so you
didn't see it. I have Gnuplot 4.0 installed (Linux).
If you need to include the plot in a document, try eps or png.
If you need to include it in a web page, try png.
Or get ImageMagick and convert eps or png to jpeg.
HTH
Robert Dodier