Menu

#1531 Some mouse operations not working in "qt" terminal

closed-fixed
nobody
qt (21)
5
2015-03-23
2014-12-30
Simon May
No

gnuplot version: 4.6.5
Platform: Linux (Ubuntu 14.10)

Using the "qt" terminal, some mouse operations such as double-click to copy coordinates to the clipboard or middle-click (mouse button 3) to create a label with coordinates on the plot do not appear to be working. Even in verbose mode (pressing "6" in the plot window), neither double-clicks nor middle-clicks produce any output in the console.

The help output (pressing "h" in the plot window) produces the following output, suggesting that this functionality should be available:

 2x<B1>             print coordinates to clipboard using `clipboardformat`
                    (see keys '3', '4')
 <B2>               annotate the graph using `mouseformat` (see keys '1', '2')
                    or draw labels if `set mouse labels is on`
 <Ctrl-B2>          remove label close to pointer if `set mouse labels` is on
 <B3>               mark zoom region (only for 2d-plots and maps).
 <B1-Motion>        change view (rotation). Use <ctrl> to rotate the axes only.
 <B2-Motion>        change view (scaling). Use <ctrl> to scale the axes only.
 <Shift-B2-Motion>  vertical motion -- change xyplane
 <wheel-up>         scroll up (in +Y direction).
 <wheel-down>       scroll down.
 <shift-wheel-up>   scroll left (in -X direction).
 <shift-wheel-down>  scroll right.
 <control-wheel-up>  zoom in toward the center of the plot.
 <control-wheel-down>   zoom out.
 <shift-control-wheel-up>  zoom in only the X axis.
 <shift-control-wheel-down>  zoom out only the X axis.

 Space          raise gnuplot console window
 q            * close this plot window

 a              `builtin-autoscale` (set autoscale keepfix; replot)
 b              `builtin-toggle-border`
 e              `builtin-replot`
 g              `builtin-toggle-grid`
 h              `builtin-help`
 l              `builtin-toggle-log` y logscale for plots, z and cb for splots
 L              `builtin-nearest-log` toggle logscale of axis nearest cursor
 m              `builtin-toggle-mouse`
 r              `builtin-toggle-ruler`
 1              `builtin-previous-mouse-format`
 2              `builtin-next-mouse-format`
 3              `builtin-decrement-clipboardmode`
 4              `builtin-increment-clipboardmode`
 5              `builtin-toggle-polardistance`
 6              `builtin-toggle-verbose`
 7              `builtin-toggle-ratio`
 n              `builtin-zoom-next` go to next zoom in the zoom stack
 p              `builtin-zoom-previous` go to previous zoom in the zoom stack
 u              `builtin-unzoom`
 Right          `builtin-rotate-right` only for splots; <shift> increases amount
 Up             `builtin-rotate-up` only for splots; <shift> increases amount
 Left           `builtin-rotate-left` only for splots; <shift> increases amount
 Down           `builtin-rotate-down` only for splots; <shift> increases amount
 Escape         `builtin-cancel-zoom` cancel zoom region

              * indicates this key is active from all plot windows

Discussion

  • Simon May

    Simon May - 2014-12-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,6 +4,7 @@
     Using the "qt" terminal, some mouse operations such as double-click to copy coordinates to the clipboard or middle-click (mouse button 3) to create a label with coordinates on the plot do not appear to be working. Even in verbose mode (pressing "6" in the plot window), neither double-clicks nor middle-clicks produce any output in the console.
    
     The help output (pressing "h" in the plot window) produces the following output, suggesting that this functionality should be available:
    +
          2x<B1>             print coordinates to clipboard using `clipboardformat`
                             (see keys '3', '4')
          <B2>               annotate the graph using `mouseformat` (see keys '1', '2')
    
     
  • Ethan Merritt

    Ethan Merritt - 2014-12-30

    Thank you for the report.

    The failure of double-click is a known issue and is noted as such in the Release Notes for version 5.0 (to be released in a few days).
    The work-around is to use variables MOUSE_X and MOUSE_Y.

    Middle-click was fixed in 4.6.6

    Were there any other issues?

     

    Last edit: Ethan Merritt 2014-12-30
  • Simon May

    Simon May - 2015-01-01
    • status: open --> closed-fixed
     
  • Simon May

    Simon May - 2015-01-01

    @Ethan: Thank you for the quick reply. I did read the release notes for 4.6.6 and saw that some issues with the qt terminal were addressed, but from the wording I did not make the connection specifically to the middle-click functionality. Using 4.6.6, it does indeed work. Unfortunately, the default repositories for Ubuntu 14.10 include neither 4.6.6 nor 5.0.

    I did not notice any further issues. I phrased it as "such as" in the description because I have not tested the qt terminal extensively.

     

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.