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

Clément David Clement.David at esi-group.com
Tue Jun 7 12:54:08 CEST 2022


Hello Denis,

I don’t think Scilab provide a function to retrieve the parent figure of an entity ; could you open a bug with this wish ?

Note: internally, there is already a non-iterative O(1) way to retrieve it.

Regards,
Clément

From: users <users-bounces at lists.scilab.org> On Behalf Of CRETE Denis
Sent: Tuesday, June 7, 2022 11:39 AM
To: Users mailing list for Scilab <users at lists.scilab.org>
Subject: [Scilab-users] Graphics: Current figure and current entity

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/710bcf75/attachment.htm>


More information about the users mailing list