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


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

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

Add a New Comment(Rich Markup)

You are not logged in

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


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>
Project 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>
Project Administrator
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:

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


   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 mtmiller (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

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

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    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.3