bugGNU Octave - Bugs: bug #44427, Document that ginput is intended...

 
 

bug #44427: Document that ginput is intended for 2-D plots

Submitter:  Rik <rik5>
Submitted:  Wed 04 Mar 2015 06:38:36 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 11 Apr 2015 05:19:18 PM UTC, comment #3: 

Change documentation to note that ginput is for 2-D plots, but that "currentpoint" can be used for 3-D plots.

Rik <rik5>
Group administrator
Wed 04 Mar 2015 07:06:07 PM UTC, comment #2: 

I don't know what the other product does, but I do know there is a select3d m-file on the file exchange that specifically adds this capability; It doesn't look like they do anything better either but leave it to users.

Rik <rik5>
Group administrator
Wed 04 Mar 2015 07:02:12 PM UTC, comment #1: 

Btw, I once implemented FLTKs axes currentpoint as specified by ML for 3D plots as vector perpendicular to the image plane through that point. For example:


close all
graphics_toolkit fltk
sombrero
# please click the figure
ginput (1); #dummy read to wait for click

p = get (gca, "currentpoint");
tmp = axis ();
line (p(:, 1), p(:, 2), p(:,3), "linewidth", 3)
axis (tmp)


so we could easily return more than x, y for 3D plots if we want. What does the other produkt return for 3D plots?

Andreas Weber <andy1978>
Group Member
Wed 04 Mar 2015 06:38:36 PM UTC, original submission:  

Using ginput on a 3-D plot, such as sombrero, returns x, y values that are not those of the selected point.  It may be able to transform the values into the correct ones by working with the azimuth and elevation returned from view(), but it certainly isn't straightforward.  It's probably easiest to just document that ginput works best for 2-D plots.

Rik <rik5>
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

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by rik5 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-11 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code