Menu

Cannot zoom into a Gnuplot plot involving parametric + multiplot

Help
Lucia
2021-06-21
2021-07-10
  • Lucia

    Lucia - 2021-06-21

    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!

     
  • Hans-Bernhard Broeker

    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)
    
     
    • Lucia

      Lucia - 2021-06-21

      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.

       
      • Bastian Märkisch

        Unfortunately, gnuplot remembers only the very last plot. Zooming in on multiplots hence generally does not work.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.