bugGNU Octave - Bugs: bug #41886, imagesc with badly scaled axes

 
 

bug #41886: imagesc with badly scaled axes

Submitter:  Muhali <muhali>
Submitted:  Mon 17 Mar 2014 02:01:01 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
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
   

Tue 18 Mar 2014 05:22:04 PM UTC, comment #4: 

Fixed in this changeset on the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/2f39b386d399).  In a little while I'm sure this will get merge over to all the other branches.

Rik <rik5>
Group administrator
Tue 18 Mar 2014 04:06:19 PM UTC, comment #3: 

Okay, this is pretty easy to fix.  It looks like imagesc just calls 'axis tight'.  I'll get to it later today.

Rik <rik5>
Group administrator
Tue 18 Mar 2014 03:57:58 PM UTC, comment #2: 

from ML:

>> get (gca, 'xlimmode')


ans =

manual

>> xlim


ans =

          50        1050

>> pbaspect ('mode')


ans =

auto

>> daspect ('mode')


ans =

auto


Muhali <muhali>
Tue 18 Mar 2014 03:52:57 PM UTC, comment #1: 

This is a regression between 3.8.0 and 3.8.1.  I thought that imagesc would call the equivalent of "axis image" which is "axis tight; axis equal".  Perhaps you could run the following test in Matlab and report the results.


y = 1:10 ; x = 100*y;
imagesc(x, y, cos(x'*y))
get (gca, 'xlimmode')
xlim
pbaspect ('mode')
daspect ('mode')


Rik <rik5>
Group administrator
Mon 17 Mar 2014 02:01:01 PM UTC, original submission:  


y = 1:10 ; x = 100*y;
imagesc(x, y, cos(x'*y))


produces a rectangle in the form of a line. This would be expected if 'axis equal' is set. Setting 'axis normal' brings everything back to normal, which should be the default (as in ML).

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-18 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-03-18 rik5 Item GroupNone Regression
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code