[Pkg-octave-devel] Bug#492038: octave3.0: pcolor does not show all data

Francesco Potorti` Potorti at isti.cnr.it
Fri Jul 25 15:33:11 UTC 2008


package octave3.0
tags 492038 upstream
stop

Dear Octave maintainers,

The bug report reproduced below has been filed against the Debian 
package and regards the upstream sources.  The report is recorded at
http://bugs.debian.org/492038

Thanks,

Package: octave3.0
Version: 1:3.0.1-4
Severity: normal

If you try
  pcolor(1:3,1:3,reshape(1:9,3,3))
you see that it only displays four colours.  In general, pcolor does not
display anything for the last row and column.  Those data are ignored as
far as plotting is concerned.  However, they are taken into account as
far as axis limits are concerned, both for ticks and for colors.  I
don't know if it is done for compatibility with Matlab.  Anyway, this
function corrects the problem when pcolor is called with vector X and Y:

function mypcolor(x,y,z)
  x0=3*x(1)-x(2);xe=3*x(end)-x(end-1);xm=x(1:end-1)+x(2:end);x=[x0;xm(:);xe]/2;
  y0=3*y(1)-y(2);ye=3*y(end)-y(end-1);ym=y(1:end-1)+y(2:end);y=[y0;ym(:);ye]/2;
  z=[z,z(:,end);z(end,:),z(end,end)];
  pcolor(x,y,z);
endfunction


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=it_IT at euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages octave3.0 depends on:
ii  libatlas3gf-base [libl 3.6.0-21.5        Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so 1.2-1.6           Basic Linear Algebra Subroutines 3
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libcurl3-gnutls        7.18.2-5          Multi-protocol file transfer libra
ii  libfftw3-3             3.1.2-3.1         library for computing Fast Fourier
ii  libgcc1                1:4.3.1-2         GCC support library
ii  libgfortran3           4.3.1-2           Runtime library for GNU Fortran ap
ii  libglpk0               4.28-3            linear programming kit with intege
ii  libhdf5-serial-1.6.6-0 1.6.6-4           Hierarchical Data Format 5 (HDF5) 
ii  liblapack3gf [liblapac 3.1.1-0.5         library of linear algebra routines
ii  libncurses5            5.6+20080308-1    Shared libraries for terminal hand
ii  libpcre3               7.4-1+lenny2      Perl 5 Compatible Regular Expressi
ii  libqhull5              2003.1-9          calculate convex hulls and related
ii  libreadline5           5.2-3             GNU readline and history libraries
ii  libstdc++6             4.3.1-2           The GNU Standard C++ Library v3
ii  libsuitesparse-3.1.0   3.1.0-3           collection of libraries for comput
ii  texinfo                4.11.dfsg.1-4     Documentation system for on-line i
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages octave3.0 recommends:
ii  gnuplot                       4.2.2-1.1  A command-line driven interactive 
ii  libatlas3gf-base              3.6.0-21.5 Automatically Tuned Linear Algebra

-- no debconf information








More information about the Pkg-octave-devel mailing list