help-octave
[Top][All Lists]
Advanced

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

[colorbar] wrong dimensions with 'axis square'


From: Martijn
Subject: [colorbar] wrong dimensions with 'axis square'
Date: Tue, 24 Aug 2010 09:14:58 +0200

Hi,
When I draw a colorbar along a pcolor image and make the axes square
(axis('square')), the dimensions of the colorbar are also changed, and
the colorbar becomes enreadible low, as shown in the attached image.

If others can reproduce this, I will file a bug. I am running octave
3.2.3 and gnuplot 4.2. The problem occurs both with the X11 and the wxt
backend. Do you get the same results?

Martijn


P.S. The image can be produced using these commmands:
x=-1:0.01:1;
y=x;
[X,Y]=meshgrid(x,y);
Z=cos(4*pi*X).*cos(4*pi*Y).*exp(-2*sqrt(X.^2+Y.^2));
shading('interp')
pcolor(X,Y,Z)
shading('interp')
axis('square')
cb=colorbar()

Attachment: cb.png
Description: PNG image


reply via email to

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