Issue with hggroup and zlim

David Bateman David.Bateman at motorola.com
Mon Sep 1 09:22:27 CDT 2008


David Bateman wrote:
> Ben Abbott wrote:
>>
>> I think that depends upon compatibility in other areas.
>>
>> Trusting my memory, plot3 (<real_matrix>, <real_matrix>, 
>> <real_matrix>) produces a series of 3D lines in Matlab, but produces 
>> a single line in Octave ... the Octave result will zig-zag (see the 
>> code below)
>>
>>      [x, y] = meshgrid (0:10, 0:10);
>>      z = x.*y;
>>      figure(1)
>>      clf
>>      plot3 (x, y, z)
>>
>> Same for plot3 (<real_matrix>, <complex_matrix)
>>
>>      y = y + 1i*z;
>>      figure(2)
>>      clf
>>      plot3 (x, y)
>>
>> This issue is what I think needs attention, and I have a faint 
>> recollection that maintaining the complex_vector/matrix feature was 
>> problematic.
>>
>> Ben
>>
> Ok, this is clearly a bug. I think the attached addresses this. and now
>
> [x, y] = meshgrid (0:10, 0:10); z = x.*y; figure(1); clf; h = 
> plot3(x,y + 1i *z); zlim(0,100)
>
> and
>
> [x, y] = meshgrid (0:10, 0:10); z = x.*y; figure(1); clf; h = 
> plot3(x,y,z); zlim(0,100)
>
> both work correctly on my machine. Note the zlim is needed to get 
> around the issue addressed in
>
> http://hg.tw-math.de/octave-graphics-mq/rev/7747c2f2f3ed
>
> D.
>
>

Please use the attached instead, that moves the color definition inside 
the loop over the columns of the matrices so that __next_line_color__ is 
called for each column.

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: patch8494
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20080901/7ee5619f/attachment-0001.ksh 


More information about the Bug-octave mailing list