#1887 Qt terminal zoom coordinates behind solid object

Dan Sebald

I'm using near to the latest development version.

When Qt terminal has a solid object in the plot, the mouse zoom box coordinates appear behind that object and are not visible through the opaque surface. Try the following:

set term qt
set object 1 rect from graph 0, graph 0 to graph 1, graph 1 behind
plot x

Then zoom a portion of the screen and notice the coordinates are not visible unless moved to an area beyond the plot. See the attached PNG.

x11 terminal and wxt terminal appear to be fine.

1 Attachments


  • Ethan Merritt

    Ethan Merritt - 2016-12-17

    The mouse coordinates are echoed in magin (lower left in your screenshot). I prefer putting them in the toolbar, but anyhow you don't need to have them in the plot window.

    Last edit: Ethan Merritt 2016-12-17
  • Dan Sebald

    Dan Sebald - 2016-12-17

    Qt is very object oriented. This should be an easy change. Try the attached patch:

    patch -p0 < gnuplot-zoombox_annotation_on_top-djs2016dec17.patch

    The existing code is doing this with the zoom rectangle:

                m_zoomRect->setZValue(32767);  // make sure guide box is on top

    so I did the same with the annotation. I moved these commands to the point the objects are created, as they will retain their Z-value since they aren't deleted and re-instantiated with every zoom.

  • Ethan Merritt

    Ethan Merritt - 2016-12-24
    • status: open --> pending-accepted
    • Group: -->
    • Priority: -->

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks