-------- Original-Nachricht --------
Datum: Mon, 23 Apr 2007 18:33:41 -0400
Von: "John W. Eaton" <address@hidden>
An: Daniel J Sebald <address@hidden>
CC: Octave Forge List <address@hidden>, Octave Maintainers List <address@hidden>
Betreff: Re: [OctDev] Java/OpenGL-based graphics package for octave
...
> It looks like the legend is a child of the figure, not the axes.
>
> jwe
Hello,
to make things worse - it can be both, of course not at the same time. If you
call lengend('line1','line2') then its a child of the current figure or
legend(gca,'line1','line2') then its a child of the current axes. By the way
the same is true for colorbar.
So, you need to be able to add/delete a property to a graphic object on demand.
It seems Matlab has two functions for adding a property 'addproperty' and
'addynprop' but I don't know the differences.