bugGNU Octave - Bugs: bug #63723, Mouse position in plot window...

 
 

bug #63723: Mouse position in plot window unprecise due to engineering number format

Submitter:  None
Submitted:  Fri 27 Jan 2023 09:11:17 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  reald Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 6.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Feb 2023 04:33:55 PM UTC, comment #2: 

As someone noted in comment #1, Octave uses OpenGL for plotting which uses single data types.  It depends what real number you are trying to represent, but generally only 7-9 base-10 digits are significant.

You could try using gnuplot for plotting as it uses double precision (~16 base-10 digits).  Type 'graphics_toolkit gnuplot' before plotting to see if this would work for you.


Rik <rik5>
Group administrator
Mon 30 Jan 2023 10:47:05 PM UTC, comment #1: 

Single precision used for plotting. Moose not accurate for single processor.

Anonymous
Fri 27 Jan 2023 09:11:17 PM UTC, original submission:  

Steps to reproduce:

1. Execute commands:
s=rand(1, 5*44100); # simulate 5 seconds audio
plot(s)

2. Plot appears. Move mouse over plot. The mouse position appears in the lower bar.

Observed behaviour:

At x values >= 100000 the number format changes to engineering format "1.xxxxe+05" (or higher exponents). This prevents you from finding the exact position of events in larger data sets.

Expected behavoiur:

Just print long numbers without loss of data. The bar is long enough to take precise numbers. At least provide possibility to configure the behaviour.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #54276:  Screenshot_20230127_215715.png added by None (28KiB - image/png)
file #54277:  Screenshot_20230127_215742.png added by None (28KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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
    2023-01-27 None Attached File- Added Screenshot_20230127_215715.png, #54276
        Attached File- Added Screenshot_20230127_215742.png, #54277

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code