bugGNU Octave - Bugs: bug #45631, Line dissapear from plot when...

 
 

bug #45631: Line dissapear from plot when modifying "plotboxaspectratio"

Submitted by:  None
Submitted on:  Sun 26 Jul 2015 12:14:00 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 29 Dec 2016 10:28:03 PM UTC, comment #3:

This issue is still present in Octave 4.2.0.

The plot command and data in comment #0 still produce an empty plot for me (graphics_toolkit qt).

Hartmut <hardy>
Tue 28 Jul 2015 04:52:46 PM UTC, comment #2:

Need to narrow this down a bit.

1) Does this work if you use the gnuplot toolkit? (does for me)
2) Does this work if you manually change the axis limits after the end of plotting to something larger than the data such as axis ([1 3 1 3])?
3) dataaspectratio and pbaspectratio are very interellated. See http://www.mathworks.com/help/matlab/ref/axes-properties.html?nocookie=true#prop_DataAspectRatio for extensive documentation. Do you need to set plotboxaspectratio to ([1 1 1]) if you have already set dataaspectratio to ([1 1 1])? Using your example, and commenting out dataaspectratio and plotboxaspectratio, I find that only one of the commands is needed to produce a square plot. I think that may be the quickest workaround.

Rik <rik5>
Project Administrator
Sun 26 Jul 2015 12:32:03 PM UTC, comment #1:

Additional info:

It appears like the property does affect what can be drawn. With dots instead of a line, the some part of the "line" is clipped.

Anonymous
Sun 26 Jul 2015 12:14:00 PM UTC, original submission:

This bug is present in booth 3.8.1 and 4.0.0. It also affect both FLTK and Qt.

When modifying "plotboxaspectratio", it becomes impossible to draw a line. Only dots works. It only appears for certain input data, suggesting some bad rounding.

The script:

The helper function exploiting the bug

The bug affects `axis equal` since it sets the affected property.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34529:  mod34_beta.mat added by None (4KiB - application/octet-stream - Files with data)
file #34530:  mod34_beta2.mat added by None (4KiB - application/octet-stream - Files with data)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Jul 2015 04:52:46 PM UTCrik5StatusNone=>Confirmed
      Release3.8.1=>dev
    Sun 26 Jul 2015 12:14:00 PM UTCNoneAttached File-=>Added mod34_beta.mat, #34529
      Attached File-=>Added mod34_beta2.mat, #34530

    Back to the top


    Powered by Savane 3.1-cleanup1