I\'m plotting some data with a different X range and I would like to change yrange according to the maximum and minimum value of the data in the current X range. When I use
I use it like this to define an x range for a funcion
plot [0:5] sin(10*x) + cos(3*x)
Also, you can set the range before ploting
set xrange [0:5] plot sin(10*x) + cos(3*x)