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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Tue, 7 Dec 2010, Hugo Coolens wrote:

< 
< 
< 
< On Mon, 6 Dec 2010, Leo Butler wrote:
< 
< > 
< > 
< > On Mon, 6 Dec 2010, 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?
< > 
< > Hugo, this works in 5.22.1,
< > 
< > plot2d(relplots,
< >       [x,0.01,1],
< >       [legend,"beta0.1","beta0.213","beta0.444","beta1","beta4.545"],
< >       [gnuplot_term,'pslatex],
< >       [gnuplot_out_file,"example.tex"]);
< This solves my problem, however I can't figure out how to set the size
< properly. I tried (reading the documentation):
< plot2d(relplots,[x,0.01,1],[legend,"beta0.1","beta0.213","beta0.444","beta1","beta4.545"],[gnuplot_term,'pslatex],[gnuplot_ps_term_command,
< set size 25cm,18cm],[gnuplot_out_file,"example.tex"]);
< 
< I als tried:
< [gnuplot_term,'pslatex size 25cm, 18cm]
< 
< but this doesn't work neither.
< 
< can anyone tell me how to set the size properly?
 
 Hi Hugo,
 I think, if you look at gnuplot documentation, that the command

 set size 1,1

 sets the figure to be 5in x 3in in most terminals. So the
 command

 set size x,y

 should set the figure size to be 5*x by 3*y inches.

 Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkz+SKMACgkQWA0L8iBzP5g2VwCguXgWSy5VpV2DTtVuzUw2eIwn
nuQAn0+90xRZcBjUV3CII2WoH5TtrMZp
=Hp2O
-----END PGP SIGNATURE-----

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.