<div dir="ltr"><div><div><div>Dear all,<br><br></div>searching a little how GUI's can be "screenshotted" in Matlab gave me following:<br><br></div>Request on a Matlab forum, see: <br></div><br><a href="https://de.mathworks.com/matlabcentral/newsreader/view_thread/146264">https://de.mathworks.com/matlabcentral/newsreader/view_thread/146264</a><br><br><div>[...] " In order to show users without atlab on their desktop the output, i want to create a export function."<br></div><div><br>This could be the reason for having the oppertunity of screenshotting a GUI.<br></div><div><br></div><div>Anyways:<br><br></div><div>to me it seems that following is needed to do the trick:<br><br>[name,path,index] = uiputfile<br>
saveas(guifigurehandle,[path name]);<br></div><div><div><br></div><div>while   "saveas" calls  "print"<br></div><div>see "ocatave" code:            <a href="https://fossies.org/dox/octave-4.0.3/saveas_8m_source.html">https://fossies.org/dox/octave-4.0.3/saveas_8m_source.html</a><br><br></div><div>The print.m code is than way beyond my code understanding.<br></div><div>see "ocatave" code:            <a href="https://fossies.org/dox/octave-4.0.3/print_8m_source.html">https://fossies.org/dox/octave-4.0.3/print_8m_source.html</a><br><br></div><div><br></div><div>best regards,<br></div><div>Phil<br></div><div><br><br><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-02 23:07 GMT+01:00 Rafael Guerra <span dir="ltr"><<a href="mailto:jrafaelbguerra@hotmail.com" target="_blank">jrafaelbguerra@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Antoine,<br>
<br>
I do not have an answer but a question, if you will.<br>
Why is it important for you to export the whole shebang from Scilab?<br>
<br>
For the regular figures the export functions work fine and generate high-resolution post-script files.<br>
For the GUI figures, using external screen capture software does not seem to me to be a big handicap, but I might be wrong and I therefore raise the question.<br>
<br>
Thanks and regards,<br>
Rafael<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: users [mailto:<a href="mailto:users-bounces@lists.scilab.org">users-bounces@lists.<wbr>scilab.org</a>] On Behalf Of Antoine Monmayrant<br>
Sent: Tuesday, November 01, 2016 9:41 PM<br>
To: Users mailing list for Scilab <<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>><br>
Subject: [Scilab-users] Exporting figures containing uicontrols to any format<br>
<br>
Hi everyone,<br>
<br>
After a long fight to build fancy graphics with uicontrols to demo some physics, I am now stuck because of bug 14502 ( <a href="https://bugzilla.scilab.org/show_bug.cgi?id=14502" rel="noreferrer" target="_blank">https://bugzilla.scilab.org/<wbr>show_bug.cgi?id=14502</a> ).<br>
Basically, I have no way to export my figure to any format (ie no exportUI(gcf()) and no xs2something).<br>
As any of you ever managed to export a figure with uicontrols where both the plots and the uicontrols are well rendered?<br>
<br>
Antoine<br>
<br>
PS: for a bit of context, try the following:<br>
<br>
1) Demos->GUI->Uicontrols 2 //(or any with uicontrols)<br>
2) h=gcf();xs2svg(h, 'h.svg'); // or any other format<br>
3) open h.svg, it's empty<br>
<br>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.</div><div><br></div><div>There we have the salad.</div></div></div>
</div>