Paul Wagner <paul_spam <at> gmx.at> writes:
>
>
> Hello Gnuplotters,
>
> I want to plot a data file and a function. My problem is that I want to
> autoscale the axes, but just on the data in the file, i.e. the yrange should
> not be scaled to the yrange the function requires for the given xrange, but
> yrange and xrange should be solely determined by the data, and those parts
> of the function off these ranges should be clipped. I tried the yrange
> writeback-plot data-yrange restore-replot function approach, but that
> doesn't work nicely with terminal PNG.
>
> Thanks for any advise,
>
> Paul
>
you could switch to another terminal for the first plot:
set output
set terminal dumb
set yrange [] writeback
plot 'datafilename' ...
set yrange restore
set terminal png
set output 'filename.png'
replot function(x) ...
set output
|