bugGNU Octave - Bugs: bug #32310, ginput does not return correct...

 
 

bug #32310: ginput does not return correct graph coordinates

Submitter:  John W. Eaton <jwe>
Submitted:  Mon 31 Jan 2011 09:37:11 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 04 Feb 2012 02:47:31 AM UTC, comment #2: 

Fixed in this changeset (5a2b012b10c7).

Rik <rik5>
Group administrator
Mon 21 Feb 2011 04:19:31 AM UTC, comment #1: 

Confirmed.  I found the difference easy to spot by using

plot (-5:5, -5:5)
grid on


In this case the origin (0,0) is reported as

x = -0.0048387
y = -0.65923


The offset is not fixed either.  Using the mouse to resize the window results in the origin being at a different (x,y) value which is still not (0,0).

Rik <rik5>
Group administrator
Mon 31 Jan 2011 09:37:11 PM UTC, original submission:  

Using ginput with the fltk graphics toolkit does not seem to produce values that are graph coordinates.  The dynamic values of the mouse pointer position at the bottom of the window also do not seem to be graph coordinates, which is not what I was expecting.

For example, try this


graphics_toolkit fltk
line
grid on
[a,b,c] = ginput (1)


then place the cursor at (0.6, 0.6) and click.  For me, ginput returns


a =  0.59234
b =  0.54267
c =  1


and the dynamic coordinate display at the bottom of the windo shows something similar.  I don't think I was that far off the (0.6, 0.6) grid/line intersection.

John W. Eaton <jwe>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-04 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2011-08-03 rik5 Dependencies- bugs #33929 is dependent
    2011-04-02 rik5 Summaryginput does not return graph coordinates ginput does not return correct graph coordinates
    2011-02-28 rik5 Dependencies- bugs #32609 is dependent
    2011-02-21 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code