bugGNU Octave - Bugs: bug #65835, [Feature Request] qt figure...

 
 

bug #65835: [Feature Request] qt figure created by imshow or imagesc to show value at mouse cursor in status bar next to coordinates

Submitter:  Jan Hieronymus <xyhausen>
Submitted:  Tue 04 Jun 2024 07:17:47 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 9.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 04 Jun 2024 07:17:47 PM UTC, original submission:  

When displaying an image with the qt graphical toolkit, the coordinates of the mouse pointer are displayed in the status bar in the bottom left corner of the window as a string with the format "(%1, %2)".

It would be very much appreciated (also by others, e.g. https://stackoverflow.com/questions/23706937/displaying-pixel-values-of-an-image-in-octave#32973209), if the data value under the mouse pointer would also be displayed in the status bar, e.g. with the format "(%1, %2): %3" (or something that resembles the Matlab behaviour).

It appears, the function "Figure::updateStatusBar" (in file "libgui/graphics/Figure.cc") is called from "Canvas::canvasMouseMoveEvent" (in file "libgui/graphics/Canvas.cc") to update the status bar of the figure window.
Unfortunately, I could not figure out, how to access the image data matrix of the figure to grab the pixel value, otherwise, I would have suggested a patch.

Jan Hieronymus <xyhausen>

 

(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 xyhausen (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-c54d.
    Corresponding source code