bugGNU Octave - Bugs: bug #41466, imagesc(x, y,...) vs. imagesc(x',...

 
 

bug #41466: imagesc(x, y,...) vs. imagesc(x', y,...)

Submitter:  Muhali <muhali>
Submitted:  Wed 05 Feb 2014 08:32:44 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Feb 2014 05:43:25 PM UTC, comment #2: 

The problem was that all calculations expected row vectors, not column vector inputs.  I forced x and y inputs to be row vectors in this changeset and it now works correctly (http://hg.savannah.gnu.org/hgweb/octave/rev/4bfd44c15145).

Rik <rik5>
Group administrator
Sat 08 Feb 2014 11:04:07 PM UTC, comment #1: 

The second use case produces a warning which probably indicates something went wrong.  I tried.


imagesc(x', x, x'*x) ;
warning: operator +: automatic broadcasting operation applied
warning: called from
    image>__img__ at line 198 column 12
    image at line 116 column 10
    imagesc at line 97 column 12


Rik <rik5>
Group administrator
Wed 05 Feb 2014 08:32:44 PM UTC, original submission:  

With x = [1 2] the following two images have different colors and apparently also different axis limits:


imagesc(x, x, x'*x) ;
get(gca, 'xlim')
imagesc(x', x, x'*x) ;
get(gca, 'xlim')


ML behaves differently in both cases (same figure, same axis limits).

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-10 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-02-08 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code