Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#813 zoom

closed-fixed
nobody
None
5
2009-12-11
2009-11-11
Marco Cammarata
No

Using the latest CVS version (4.5) I get some strange error.
Try to plot a simple function (plot x) then zoom with the mouse and push "a" on the graph for autoscale ... I get a message : "undefined variable: xkeepfix".
I have to mention that since a month or so I has other problem while zooming data files as well.
My system is an ubuntu 9.10,

thanks a lot,
marco

Discussion

  • Ethan Merritt
    Ethan Merritt
    2009-11-11

    I can't reproduce this here.
    For what it's worth, the string "xkeepfix" does not appear anywhere in the current gnuplot source tree. So if there is a reproducible error, it lies in the mysterious appearance of an extra character "x".

     
  • Petr Mikulik
    Petr Mikulik
    2009-11-11

    There is something strange with zooming indeed. I can reproduce this:

    gnuplot> plot x

    now zooming by mouse, and then the following appears:

    ^
    cannot set range with replot

    and zoom no longer works.

    The same error message starts to appear even during mouse rotation in "splot x*y".

    With "a" for autoscale it appears as well.

    I've tried cvs from October 29 and this version is correct. So this bug must be connected with changes to do_string() on October 30.

     
  • The problem seems to be related to an ancient 'bug' in lf_push()/lf_pop() in that it only pushes the first num_token token structs without the last dummy EOL token. Fixing this (seperate patch, as I cannot attach a file) fixes this special issue.
    I'm not completely sure if this is the right fix, though.

    Juergen

     
  • Petr Mikulik
    Petr Mikulik
    2009-11-16

    I've commited the patch by Juergen. Please test whether it works correctly.

     
  • Petr Mikulik
    Petr Mikulik
    2009-11-16

    • status: open --> pending-fixed
     
  • I have tried few things and so far it seems to be working ...
    thanks,
    marco

     
    • status: pending-fixed --> open-fixed
     
  • Ethan Merritt
    Ethan Merritt
    2009-12-11

    • status: open-fixed --> closed-fixed