diff doc/interpreter/plot.txi @ 19061:0ee9daa71273

Fix axes property "currentpoint" for FLTK, extend documentation * plot.txi: Modify documentation for axes property currentpoint * __init_fltk__.cc: Add implementation of currentpoint for 3D plots and fix arrangement of x and y coordinates. * __fltk_ginput__.m: Fix x and y index of currentpoint to reflect bugfix in __init_fltk__.cc
author Andreas Weber <andy.weber.aw@gmail.com>
date Mon, 18 Aug 2014 21:25:39 +0200
parents 9609f345823e
children c419e5487d0d
line wrap: on
line diff
--- a/doc/interpreter/plot.txi	Mon Aug 18 09:09:18 2014 -0700
+++ b/doc/interpreter/plot.txi	Mon Aug 18 21:25:39 2014 +0200
@@ -1671,10 +1671,14 @@
 @item createfcn
 
 @item currentpoint
-Holds the coordinates of the point over which the mouse pointer was when
-the mouse button was pressed.  If a mouse callback function is defined,
-@qcode{"currentpoint"} holds the coordinates of the point over which the
-mouse pointer is when the function gets called.
+An 2-by-3 matrix @code{[xf, yf, zf; xb, yb, zb]} which holds the
+coordinates of the point over which the mouse pointer was when the
+mouse button was pressed in axes data units.  If a mouse callback
+function is defined, @qcode{"currentpoint"} holds the pointer
+coordinates at the time the mouse button was pressed.  For 3D plots,
+the first row of the returned matrix specifies the point nearest to
+the current camera position and the second rows the furthest point.
+The two points forms a line which is perpendicular to the screen.
 
 @item dataaspectratio
 A two-element vector specifying the relative height and width of the