Hello everybody,
I would like to zoom into a Gnuplot plot, by right-clicking with the mouse on the plot and creating a rectangle. The plot involves both two parametric plots and multiplot mode, and itis made with the following script (minimal working example)
f(x,y) = x*y
set multiplot
set parametric
#first plot
y=1.0
p sin(t),f(t,y) with lines
#second plot
y=-1.0;
p cos(t),f(t,y) w p
#unset parametric
#unset multiplot
refresh
However, I cannot zoom into this plot: When I create the rectangular window, nothing happens. I am on OS X 10.11.6, which I am not willing to update, and using Gnuplot Version 5.2 patchlevel 2, and XQuartz 2.7.11.
Thank you for your help, have a good day!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're making life unnecessarily difficult both for yourself and for gnuplot. There's absolutely no reason to do this plot in multiplot mode. This script produces the same output, with a lot less hassle, and it will let you zoom:
f(x,y) = x*y
set parametric
p sin(t),f(t,1.0), \
cos(t),f(t,-1.0)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, I am not making life unnecessarily difficult. Like I said, this is a minimal working example, which reflects a more complicated one, which I cannot reduce to the form that you write.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everybody,
I would like to zoom into a Gnuplot plot, by right-clicking with the mouse on the plot and creating a rectangle. The plot involves both two parametric plots and multiplot mode, and itis made with the following script (minimal working example)
However, I cannot zoom into this plot: When I create the rectangular window, nothing happens. I am on OS X 10.11.6, which I am not willing to update, and using Gnuplot Version 5.2 patchlevel 2, and XQuartz 2.7.11.
Thank you for your help, have a good day!
You're making life unnecessarily difficult both for yourself and for gnuplot. There's absolutely no reason to do this plot in multiplot mode. This script produces the same output, with a lot less hassle, and it will let you zoom:
No, I am not making life unnecessarily difficult. Like I said, this is a minimal working example, which reflects a more complicated one, which I cannot reduce to the form that you write.
Unfortunately, gnuplot remembers only the very last plot. Zooming in on multiplots hence generally does not work.