next up previous contents index
Next: Scrolling Up: Mouse Previous: Doubleclick   Contents   Index

Mouseformat

The set mouse format command specifies a format string for sprintf() which determines how the mouse cursor [x,y] coordinates are printed to the plot window and to the clipboard. The default is "% #g".

set mouse mouseformat is used for formatting the text on Button1 and Button2 actions - copying the coordinates to the clipboard and temporarily annotating the mouse position. An integer argument selects one of the format options in the table below. A string argument is used as a format for sprintf() in option 6 and should contain two float specifiers. Example:

    `set mouse mouseformat "mouse x,y = %5.2g, %10.3f"`.

Use set mouse mouseformat "" to turn this string off again.

The following formats are available:


0   default (same as 1)
1   axis coordinates                    1.23, 2.45
2   graph coordinates (from 0 to 1)    /0.00, 1.00/
3   x = timefmt     y = axis           [(as set by `set timefmt`), 2.45]
4   x = date        y = axis           [31. 12. 1999, 2.45]
5   x = time        y = axis           [23:59, 2.45]
6   x = date time   y = axis           [31. 12. 1999 23:59, 2.45]
7   format from `set mouse mouseformat`, e.g. "mouse x,y = 1.23,     2.450"



2016-07-22