Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#317 y-axis gets reversed on zoom

closed-fixed
Petr Mikulik
2D plot (258)
5
2005-12-17
2005-11-29
Mike Sutton
No

The y-axis gets reversed upon zooming for the following:

set view map
plot sin(x)

Now zoom in and check the y-axis. This may be related
to bug 1042785.

Gnuplot version is 4.1 (CVS snapshot on 11/28/2005) on
Linux with x11 terminal.

I thought that set view only applied to splot commands.

Discussion

  • Ethan Merritt
    Ethan Merritt
    2005-11-29

    Logged In: YES
    user_id=235620

    Good thing cvs makes it so easy to back-track through
    previous versions. Turns out the bug was introduced here:

    2004-10-11 Petr Mikulik <mikulik@physics.muni.cz>
    * src/mouse.c (apply_zoom): Fix for reversed y-range
    in zoom by mouse
    and "set view map".

     
  • Petr Mikulik
    Petr Mikulik
    2005-11-29

    Logged In: YES
    user_id=31505

    Thanks for finding that exact patch which introduced this
    problem. It needed (is_3d_plot && splot_map) instead of
    (splot_map). I have fixed it in cvs.

     
  • Petr Mikulik
    Petr Mikulik
    2005-11-29

    • status: open --> closed-fixed
     
  • Ethan Merritt
    Ethan Merritt
    2005-12-12

    Logged In: YES
    user_id=235620

    Re-opening this one, because there is still a glitch here.
    Test procedure:

    plot sin(x)
    # zoom with mouse
    set view map
    splot x
    # hit "u" key in plot window

    The y axis is now reversed, and remains reversed even with
    subsequent replot or splot commands

     
  • Ethan Merritt
    Ethan Merritt
    2005-12-12

    • status: closed-fixed --> open-fixed
     
  • Petr Mikulik
    Petr Mikulik
    2005-12-17

    • assigned_to: nobody --> mikulik
    • status: open-fixed --> closed-fixed
     
  • Petr Mikulik
    Petr Mikulik
    2005-12-17

    Logged In: YES
    user_id=31505

    I hope I have fixed even this case. Please try it. If you
    find any other problem, reopen this issue again.