help-octave
[Top][All Lists]
Advanced

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

Re: imagesc aspect ratio


From: Mike Miller
Subject: Re: imagesc aspect ratio
Date: Sat, 5 Apr 2014 17:37:24 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Apr 05, 2014 at 12:24:30 -0400, Stephen Isard wrote:
> Hello,
> 
> I have just compiled octave 3.81 for myself after using the 3.4 version
> distributed with my linux distribution for some years.  The behaviour of the
> imagesc function seems to have changed, although the help file hasn't.  I
> wonder whether this is intentional or a bug.
> 
> In 3.4 the code
> imagesc([1:3]*0.01,[1:3],zeros(3)); colormap(gray);
> produces a nearly square black rectangle with the x axis labelled from
> 0.005 to 0.035.  In 3.81 it produces a vertical line with x axis labels
> printed on top of each other at the bottom.  A subsequent call to
> asp=daspect()
> gives [1.0000 100.0000 33.3333] in 3.4, but [1 1 1] in 3.81.  Calling
> daspect with the values from 3.4 in 3.8 gets the nearly square plot.
> 
> I found the old behaviour more helpful.  In particular the speech
> spectrogram example in the help file for the specgram function from the
> signal package no longer works.  You just get a vertical line.  You have to
> set the aspect ratio by hand to see a display.

This is in fact a bug that was reported and fixed just this week. Please
see http://savannah.gnu.org/bugs/?42043.

HTH,

-- 
mike



reply via email to

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