Bug for combined plot of pcolor and contour

David Bateman David.Bateman at motorola.com
Mon Dec 17 09:11:53 CST 2007


John W. Eaton wrote:
> On 14-Dec-2007, David Bateman wrote:
>
> | David Bateman wrote:
> | > David Bateman wrote:
> | >> Kai, note that you can't currently pass "k" to contour, as additional
> | >> arguments aren't treated..
> | > 
> | > What about something like the attached so that a linespec can be passed
> | > to contour and contour3.
> | > 
> | > D.
> | 
> | 
> | The attached might be better as it allows dotted and dashed lines as
> | well, with gnuplot 4.2 for contours, though they aren't displayed on X11
> | terminals
>
> I applied this patch and checked it in.
>
> Thanks,
>
> jwe
>
>   

On the advice from Petr, the attached patch makes the pm3d plotting
explicit (ie must use splot ... with pm3d), and privileges no hidden
line removal when there are multiple objects displayed.. With this patch

[x,y,z]=peaks(10);
h1 = pcolor(x,y,z);shading flat;hold on;
[clev,h2] = contour(x,y,z,5);
for i = 1:length(h2)
  set (h2(i), "zdata", ones (size(get (h2(i), "xdata"))), "edgecolor",
"black");
endfor

works as expected..

D.

-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch6
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071217/1c675393/attachment-0002.ksh 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch6.changelog
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071217/1c675393/attachment-0003.ksh 


More information about the Bug-octave mailing list