help-octave
[Top][All Lists]
Advanced

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

imagesc aspect ratio


From: Stephen Isard
Subject: imagesc aspect ratio
Date: Sat, 5 Apr 2014 12:24:30 -0400 (EDT)
User-agent: Alpine 2.02 (LRH 1266 2009-07-14)

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.

Stephen Isard



reply via email to

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