bugGNU Octave - Bugs: bug #46911, 'axis equal' affects visibility of...

 
 

bug #46911: 'axis equal' affects visibility of small plot lines

Submitter:  John Swensen <jpswensen>
Submitted:  Fri 15 Jan 2016 08:16:20 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  John Swensen Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 02 Feb 2019 02:51:26 AM UTC, comment #5: 

This seems to have been fixed a long time ago, but the bug was never closed.

Rik <rik5>
Group administrator
Wed 06 Jul 2016 07:19:13 PM UTC, comment #4: 

This bug is actually caused by the 'axis equal' command that is present for all three plots.  I have made this bug a dependency of #48142.

Rik <rik5>
Group administrator
Tue 09 Feb 2016 06:38:57 PM UTC, comment #3: 

The first plot does show correctly when using the gnuplot interface, but not the OpenGL backends. May be a scaling range issue with OpenGL as happens in other situations as well.

Also worth noting that you may want to avoid "hold all". Matlab has deprecated "hold all" in favor of "hold on", and I think Octave plans to do the same in a future release.

Mike Miller <mtmiller>
Group Member
Tue 09 Feb 2016 05:55:05 PM UTC, comment #2: 

Max, that is exactly how this example it should have worked.
 
Figure 1 :  'hold all' + small values for points == none of the parallelograms are plotted

Figure 2 :  'hold all' + larger values for points == plots all parallelograms in a different color each time

Figure 3 :  no 'hold all' + small values for points == each individual parallelogram is plotted correctly

In summary the problem is a combination of 'hold all' and small values for the plot points.

John Swensen <jpswensen>
Wed 20 Jan 2016 08:14:04 AM UTC, comment #1: 

I can reproduce that behaviour under Ubuntu 15.10.

Figure 2 and 3 are different for me and I'm not sure whether this is intended or not. Figure 3 shows a blue parallelogram only, and figure 2 a lot more.

Max Görner <maxg>
Fri 15 Jan 2016 08:16:20 PM UTC, original submission:  

A student of mine was trying to plot using 'hold all'. We were working in units of meters with some items having sizes as small as millimeter, so some of the variables were in the 0.001 to 0.0001 range.

What we found was that when trying to plot lines using values that were small, combined with the use of 'hold all', that the plot lines simply didn't show up. We could get the plot to show up either by not using hold all or by increasing the magnitude of the plot points.

I have attached a script that demonstrates the failure. This was tested on both Windows and OSX using the GUI version 4.0.0

John Swensen <jpswensen>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36052:  hold_all_failure.m added by jpswensen (1KiB - application/octet-stream)

 

Digest:
   bug dependencies.

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 maxg (Posted a comment)
  • -email is unavailable- added by jpswensen (Submitted the item)
  • -email is unavailable- added by jpswensen
  •  

    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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-03 mtmiller Carbon-CopyRemoved 80942 -
    2019-02-02 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-07-06 rik5 SummaryHold all affects visibility of small plot lines 'axis equal' affects visibility of small plot lines
    2016-07-06 rik5 Dependencies- Depends on bugs #48142
    2016-02-09 mtmiller StatusNone Confirmed
    2016-01-15 jpswensen Attached File- Added hold_all_failure.m, #36052
        Carbon-Copy- Added jpswensen

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code