From: Paul K. <pki...@us...> - 2006-04-05 10:30:10
|
Update of /cvsroot/octave/octave-forge/main/plot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16040 Modified Files: contourf.m Log Message: Fix integer indexing Index: contourf.m =================================================================== RCS file: /cvsroot/octave/octave-forge/main/plot/contourf.m,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- contourf.m 27 Nov 2002 08:40:11 -0000 1.3 +++ contourf.m 5 Apr 2006 10:30:03 -0000 1.4 @@ -36,7 +36,7 @@ z(z!=fix(z)) = 0; ## plot the image, with the contours drawn in black. - colormap([0,0,0; C(linspace(1,rows(C),n+1),:)]); + colormap([0,0,0; C(round(linspace(1,rows(C),n+1)),:)]); image(flipud(z)+1); ## restore the colormap |