[Pkg-octave-devel] Bug#492038: marked as done (octave3.0: pcolor does not show all data)
Your message dated Fri, 22 Aug 2008 09:58:01 +0200
with message-id <1219391881.26700.5.camel@localhost>
and subject line Re: Bug#492038: octave3.0: pcolor does not show all data
has caused the Debian Bug report #492038,
regarding octave3.0: pcolor does not show all data
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--
492038: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492038
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: octave3.0: pcolor does not show all data
- From: Francesco Potorti` <Potorti@isti.cnr.it>
- Date: Wed, 23 Jul 2008 14:20:43 +0200
- Message-id: <E1KLdKl-0007T8-5L@tucano.isti.cnr.it>
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@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
--- End Message ---
--- Begin Message ---
- To: 492038-done@bugs.debian.org, Francesco Potorti` <Potorti@isti.cnr.it>
- Subject: Re: Bug#492038: octave3.0: pcolor does not show all data
- From: Thomas Weber <thomas.weber.mail@gmail.com>
- Date: Fri, 22 Aug 2008 09:58:01 +0200
- Message-id: <1219391881.26700.5.camel@localhost>
- In-reply-to: <488BBBC6.1040909@gmail.com>
- References: <E1KMPI7-0003xg-Bk@tucano.isti.cnr.it> <488BBBC6.1040909@gmail.com>
Am Sonntag, den 27.07.2008, 02:05 +0200 schrieb David Bateman:
> Francesco Potorti` wrote:
> > 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
> >
> >
>
> If you look at
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/pcolor.html
>
> you'll see that pcolor does indeed have the compatible behavior. The
> reasoning is that the patch color might be interpolated from the four
> vertices of the patch in pcolor (though I don't believe Octave can
> handle that yet). I propose to do nothing about this bug report.
>
> D.
Given David's explanation, I'm closing this bug. The behaviour is
expected and intended.
Thomas
--- End Message ---
Reply to: