Issue with hggroup and zlim

David Bateman David.Bateman at motorola.com
Fri Aug 29 10:00:25 CDT 2008


John W. Eaton wrote:
> On 29-Aug-2008, David Bateman wrote:
>
> | I'd suggest the attached changeset instead.. And yes it should be hline 
> | and not h in plot3.
>
> OK, after applying this patch, I'm still seeing
>
>   octave:1> z = [0:0.05:5]; hold on; hg = hggroup();
>   octave:2> h =  plot3 (z, exp(2i*pi*z),'parent',hg);
>   octave:3> h =  plot3 (z, exp(2i*pi*z),'parent',hg);
>   Segmentation fault
>   
The reason for the object being its own parent can be seen with the example


octave:1> hold on; hg1 = hggroup(), newplot (); hg2 = hggroup ()
hg1 = -2.3944
hg2 = -2.3944

Clearly hg1 and hg2 should be different as the hold is on and the 
newplot should add objects to the current axes.

octave:1> hold on
octave:2> get(gcf(),"nextplot")
ans = add
octave:3> get(gca(),"nextplot")
ans = replace
octave:4> hold off
octave:5> get(gcf(),"nextplot")
ans = replace
octave:6> get(gca(),"nextplot")
ans = replace

The problem is that "hold on" with no figures existing should create the 
currentaxes for the new figure. I have a few other problems I'd like to 
fix, so I'll sent changeset soon with all my fixes.

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



More information about the Bug-octave mailing list