[Scilab-users] Graphics: Current figure and current entity

CRETE Denis denis.crete at thalesgroup.com
Tue Jun 7 11:39:28 CEST 2022


Hello,

I have several graphic windows and in some of them, there are several “Axes” (and several curves for each “Axes”).
I can’t find in “Scilab Help” if the “current axes” is always in the hierarchy of the “current entity”, and similarly if the “current figure” is always in the hierarchy of the “current axes”.
If this was true, I suggest to mention it in the “Graphics Entities” section.
If not, is there a simple way to obtain the handle of the figure where the “current entity” is ?
I tried the following, which seems to work :
G_f=gce().parent;
while get(G_f,”type”)~=”Figure”,
          G_f= G_f.parent;
end;

Did I reinvent the wheel ?-)

Thank you in advance
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220607/c624aeb0/attachment.htm>


More information about the users mailing list