help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-linear axis data in imagesc


From: Ben Abbott
Subject: Re: Non-linear axis data in imagesc
Date: Fri, 02 Dec 2011 08:15:48 -0500

On Dec 2, 2011, at 6:52 AM, Daniel Arteaga wrote:

> Hi all,
> 
> imagesc fails to display correctly non-linarly spaced axes. Instead it 
> "invents" linear axis from the maximum value. See what I mean:
> 
> x = logspace(0,5,20);
> y = logspace(0,2,10);
> A = rand(10,20);
> imagesc(x,y,A);
> 
> Is this a bug? Any workaround to get the correct behaviour?
> 
> Tested using GNU Octave Version 3.4.2 under Ubuntu 11.10.
> 
> Thank you,
> 
> Daniel

If you see (0,0) in the upper-left, then it is working as intended. Matlab 
behaves this way as well.

If you'd prefer to have (0,0) in the lower left ...

        set (gca, "ydir", "normal")

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]