|
From: Hans-Bernhard B. <br...@ph...> - 2006-01-18 14:33:28
|
Eric Schoeller wrote: > I have been working with GNU plot and the autoscale function and have been > having some trouble. Using "set autoscale ymax" does not seem to yield the > result that I thought it would. That's because you misunderstood the relation between 'set yrange' and 'set autoscale'. In particular, 'set autoscale ymax' will not make any difference at all if you never 'set yrange' to some particular value before. The effect you want is most directly obtained by set yrange [0:*] The start-up default for both axes in gnuplot is 'autoscale' with a fall-back of [-10:10] for the x range in case you plot only an explicit function, without giving any x range. 'set autoscale ymax' in that situation has no effect, because the upper end of the yrange is already set to be autoscaled. > The labels for the x axis (1-7) do not show up, because the resulting graph > (see http://spot.colorado.edu/~schoelle/untitled.bmp) has it's y values > starting at 2 instead of 0. The problem with your script is that you never mentioned, anywhere, that the y axis was supposed to start at 0. |