I have some data in a file, with x in [2,4]
.
I put some of them, those for x in [2.5, 3.5]
, in a new file, and then I fit just the second file.
Then, I plot the first file, with all the data, and replot the fit function.
In this way, the fit function is plotted for x
in [2,4]
but is horrible because it does not fit in [2, 2.5]
and [3, 3.5]
.
So I'd like to have the plot of this fit function only in the right range, but gnuplot doesn't allow me to set a particular x range when using replot.
So, how can I have all the data but the fit function only in the right region in an unique plot?