bugGNU Octave - Bugs: bug #64244, colorbar length different for...

 
 

bug #64244: colorbar length different for Matlab

Submitter:  Muhali <muhali>
Submitted:  Tue 23 May 2023 06:03:37 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 8.1.0 Operating System:  * GNU/Linux
Fixed Release:  9.1.0 Planned Release:  9.1.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 31 May 2023 12:06:58 AM UTC, comment #2: 

I changed the default in pcolor.m to have the axes limits be "tight" to the data.  See changeset http://hg.savannah.gnu.org/hgweb/octave/rev/10daf5ce7f28.

Marking as Ready for Test.

Rik <rik5>
Group administrator
Tue 30 May 2023 11:43:44 PM UTC, comment #1: 

Actually, this is not obvious.  The difference is whether the data limits on the axes object are "tight" to the data or not.  Trying just the first two commands


load foo.mat
pcolor (X,Y,Z)


I get the following result.

file #pcolor.png

If I explicitly use "axis tight" then the plot looks the same as Matlab.


axis tight
axis off
colorbar


file #tight.png





Rik <rik5>
Group administrator
Tue 23 May 2023 06:03:37 PM UTC, original submission:  

The following example shows that octave and matlab behave differently:


load foo.mat
pcolor(X, Y, Z)
axis off
colorbar
print('octave.png', '-dpng')


(replace octave.png with matlab.png for matlab). The colorbar is obviously 'too long' for octave.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #54796:  pcolor.png added by rik5 (367KiB - image/png)
file #54797:  tight.png added by rik5 (502KiB - image/png)
file #54774:  foo.mat added by muhali (235KiB - application/octet-stream)
file #54775:  octave.png added by muhali (60KiB - image/png)
file #54776:  matlab.png added by muhali (401KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by muhali (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 13 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-04 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2023-05-31 rik5 CategoryNone Octave Function
        Severity3 - Normal 2 - Minor
        Item GroupNone Matlab Compatibility
        StatusNone Ready For Test
        Fixed ReleaseNone 9.1.0
        Planned ReleaseNone 9.1.0
    2023-05-30 rik5 Attached File- Added pcolor.png, #54796
        Attached File- Added tight.png, #54797
    2023-05-23 muhali Attached File- Added foo.mat, #54774
        Attached File- Added octave.png, #54775
        Attached File- Added matlab.png, #54776

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code