bugGNU Octave - Bugs: bug #63234, Plot line doesn't match markers...

 
 

bug #63234: Plot line doesn't match markers with large X values

Submitter:  David Gesswein <djg>
Submitted:  Tue 18 Oct 2022 04:54:01 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  David Gesswein Open/Closed:  * Closed
Release:  * 7.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Oct 2022 05:22:54 PM UTC, comment #3: 

Might also be similar to bug #63085.

Markus Mützel <mmuetzel>
Group administrator
Tue 18 Oct 2022 05:21:02 PM UTC, comment #2: 

This is a known issue that is hard to fix unfortunately. See also the documentation with suggested workarounds:
https://docs.octave.org/interpreter/Precision-issues.html

Closing as duplicate of bug #32980.

Markus Mützel <mmuetzel>
Group administrator
Tue 18 Oct 2022 05:20:26 PM UTC, comment #1: 

This is a know limitation of OpenGL-based plotting backends.
See:
https://docs.octave.org/latest/Precision-issues.html

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 18 Oct 2022 04:54:01 PM UTC, original submission:  

load('data');

plot(data(1:500,1),data(1:500,2),'-+')

The + markers show the real data. The line drawn is very coarse and doesn't match the markers. See course-plot.png. Line is the same when only line drawn.


If you make X values smaller graph is less coarse but if you zoom in the markers are still not on the line.
plot(data(1:500,1)-7e5,data(1:500,2),'-+')

zooming in with the full data set and markers is also around 20 seconds.

Initially seen with Octave 6.4.0 on Fedora Core 35. Installed the 7.2.0 Anaconda version to test and got same behavior.

Large X values are datenum values. Same behavior seen when X is set to datetick('mm/dd/yy')

David Gesswein <djg>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53876:  data added by djg (169KiB - application/octet-stream)
file #53877:  coarse-plot.png added by djg (15KiB - image/png)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by djg (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
    2022-10-18 mmuetzel CategoryPlotting Plotting with OpenGL
        StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #32980
    2022-10-18 djg Attached File- Added data, #53876
        Attached File- Added coarse-plot.png, #53877

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code