[newbie] zero file length when plotting (gnuplot-syntax)



On 12/6/10 10:52 AM, Hugo Coolens wrote:
>
>
>
> On Mon, 6 Dec 2010, Raymond Toy wrote:
>
>> On 12/6/10 8:56 AM, Hugo Coolens wrote:
>>> I'm trying to make a pslatex-file from a plot as follows:
>>>
>>> deltaurlrel(x):=1-1/(x*(1-x)*%beta+1);
>>> relplots:makelist(deltaurlrel(x),%beta,[0.1,0.213,0.444,1,4.545]);
>>> plot2d(relplots,[x,0.01,1],[legend,"beta0.1","beta0.213","beta0.444","beta1","beta4.545"],[gnuplot_preamble,"set
>>>
>>> terminal pslatex; set output 'plotrel.tex';"]);
>>>
>>> unfortunately the resulting file "plotrel.tex' is empty
>>> can anyone here tell me what (syntax?) error I'm making here?
>>
>> Based on reading the code and some experimentation, it looks like you
>> want to say [gnuplot_term, "pslatex"] instead of setting the terminal in
>> gnuplot_preamble.  However, it appears that there is no way to change
>> the name of the output file.  It defaults to ~/maxout.pslatex.
> in fact the syntax I used above did work in older versions of maxima
> (e.g. 5.13.0), but I just can't figure out how to change it in the
> recent versions of maxima.

Well, things have changed since 5.13.0. :-)

Also, I see that the default plot_format (gnuplot_pipes) does produce
the output in plotrel.tex, but in your home directory, not the current
directory.  I was testing with a plot_format of gnuplot, which has the
output file hardwired.

Ray