[Scilab-users] Export plot from figure with uicontrols

Samuel Gougeon sgougeon at free.fr
Tue Feb 26 18:58:35 CET 2019


Le 26/02/2019 à 18:32, Izabela Wójcik-Grząba a écrit :
>> What do you mean by "frames"? made with uicontrol(), or with subplot()
>> (or xsetech())?
>
> They are made with uicontrol().
>
>> The graphical effect of a uicontrol's callback remains after deleting
>> the uicontrol.
>
> Ok, it is good.
>
>> If all uicontrol are set as direct children of the figure, deleting
>> all of them in a once could be done with something like
>> c = gcf().children;
>> delete(c(c.type=="uicontrol"))
>
> But in my case I would also delete my plot which is in one of the two 
> frames.
> The structure is like that:
> Figure has two uicontrols Frame; first Frame has Axes (my plot, which 
> I would like to export),second Frame has another uicontrol Frame which 
> has 7 uicontrols Checkbox
> I hope it's clear :-)

As the exportation result, it is /too/ /clear/, unfortunately.

When exporting, you get a blank figure because the exportation removes 
all uicontrol.
Since your plot in on one of them (the frame), it is removed with its 
"substrate".

I don't think it will be possible to save your plots on uicontrol frames 
with Scilab.
But you may use subplot() and/or xsetech() to set the layout of the figure.
Why are you using a uicontrol frame?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190226/f230a717/attachment.htm>


More information about the users mailing list