bugGNU Octave - Bugs: bug #61099, (xyz)limmode behavior different...

 
 

bug #61099: (xyz)limmode behavior different from Matlab when one is axis "auto" and another "manual"

Submitted by:  None
Submitted on:  Wed 01 Sep 2021 06:34:14 AM UTC  
 
Category:  Plotting Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Bernhard Schweighofer Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  dev
Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Thu 02 Sep 2021 09:17:02 PM UTC, comment #2: 

Changing the Item Group to "Matlab Compatibility" and updating the Summary to be more specific about the difference between Octave and Matlab.

Also, just to be thorough, this behavior applies to whichever axis is "auto".  For example, this code restricts the x-axis based on the settings of the y-axis

plot (1:100)
xlim ([1, 50])
ylim ([1, 10])
xlim auto

Rik <rik5>
Project Administrator
Wed 01 Sep 2021 04:08:16 PM UTC, comment #1: 

confirming the same behavior on Windows, v6.3.0. attached image showing side-by-side of octave and matlab 2021a figures after the commands:

figure
plot (1:100)
set (gca, 'ylim', [0 1000])
set (gca, 'xlim', [1 10])
set (gca, 'ylimmode', 'auto')
set (gca, 'xlim', [1 11])


Nicholas Jankowski <nrjank>
Project Member
Wed 01 Sep 2021 06:34:14 AM UTC, original submission:  

Hello,

given following example:

figure
plot (1:100)
set (gca, 'ylim', [0 1000]) % just some 'dummy' out-of-range setting
set (gca, 'xlim', [1 10])
disp ('press ENTER to continue')
pause
set (gca, 'ylimmode', 'auto')
set (gca, 'xlim', [1 11])

The expected behavior should be (as in eg. Matlab R2016b) that (in the end) the y-axis is scaled to a range of 1 to 11. But octave scales from 0 to 100 - octave uses the complete data range to scale instead of only the data shown in the current view (limited x-range).

PS. Tested with octave 6.3.0 under linux with graphics_toolkit qt, fltk and gnuplot.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

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 nrjank (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-02 rik5 Severity3 - Normal => 2 - Minor
        Item GroupIncorrect Result => Matlab Compatibility
        Release6.3.0 => dev
        Summary(xyz)limmode doesn't work as expected => (xyz)limmode behavior different from Matlab when one is axis "auto" and another "manual"
    2021-09-01 nrjank Attached File- => Added ylimmode_auto_comparison.png, #51859
        StatusNone => Confirmed
        Operating SystemGNU/Linux => Any

    Back to the top


    Powered by Savane 3.6