|
From: Lutz M. <ma...@uc...> - 2004-06-05 20:41:02
|
On Friday 04 June 2004 21:54, Ethan A Merritt wrote:
> Consider:
>
> set term png size 600,480
> set size 0.5, 0.5
> plot sin(x)
>
> set term png size 300,240
> set size 1,1
> plot sin(x)
>
> Both of these will produce a graph that occupies roughly 300x240
> pixels, but the first one will be surrounded by a lot of empty space
> in a large window. The second one will be in a smaller window which
> it mostly fills.
This is exactly the behavior I would expect: you define the size of the
created image (i.e., the resolution) in the "set term" command, and the size
of a graph relative to the total image size using "set size".
> In the second plot of your example you told the postscript driver
> that it could only write to half of the total paper ("set size 1,0.5"),
> and so that's what it did.
I wasn't aware that this is what the "set size" command does. I though that it
tells gnuplot that "whatever graph you plot, do it in a way that it covers
the whole width of the output medium, but only half its height". I didn't
expect the "set size" command to change the size of the output medium itself,
which I thought was always 10"x7" for the postscript terminal.
Lutz
|