|
From: Thomas S. <t.s...@fz...> - 2009-08-18 14:12:13
|
you could do a dummy plot to determine the yrange and then extend this range before doing the real plot, e.g.: ts.dat: 1 2 2 1 3 4 4 4 5 3 ts.plt: reset factor=0.05 set term push set term dumb plot 'ts.dat' using 1:2 with linespoints temp=factor*(GPVAL_Y_MAX-GPVAL_Y_MIN) set yrange [GPVAL_Y_MIN-temp:GPVAL_Y_MAX+temp] set term pop replot gnuplot> load 'ts.plt' Torquil Macdonald Sørensen wrote: > > Hi! > > I use autoscale for the range of the axes, but portions of my graphs > often disappear behind the top or bottom horisontal axes, especially > when I plot integer valued functions. > > Is it possible to specify that the autoscale function should add a small > amount, e.g. 5%, so that the whole graph is visible? I don't want the > graph to reach the top or bottom horisontal axes, but nor do I want to > specify the axis range manually. > > Any ideas? I'm using a reasonably new CVS version of gnuplot. > > Thanks, > Torquil Sørensen > Norway > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/Graph-coincides-with-axes-and-disappears-tp25008405p25025748.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |