<div dir="ltr"><div><div><div><div><div><div><div>it seems that:<br><br></div>exportUI() only recognizes figure handles (and axes) for the export.<br><br></div>since pushbuttons etc. are not figure handles they are not exported?<br><br></div><br></div>e.g.: handles.mypushbotton.style = "pushbutton" <br><br>...should be maybe "figure", "frame" or "axes" to be recognized by exportUI().<br><br></div>Seems to be the same with "printfigure()"<br><br><br><br><br></div>sidequestion:<br><br></div>Is it possible to export content of a xml-file to an figure/image?<br><div><div><div><div><br></div><div>If so one could maybe use:<br><br><pre style="font-family:monospaced;font-style:normal"><span style="color:rgb(50,185,185)"> saveGui</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(174,92,176);text-decoration:underline">gcf</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">screenshot.xml</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span></pre>and than convert the content of the xml file into an image?<br><br><br></div><div><br></div><div><div><div><br><div><br><br><div><br><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-03 23:08 GMT+01:00 Philipp Mühlmann <span dir="ltr"><<a href="mailto:p.muehlmann@gmail.com" target="_blank">p.muehlmann@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://de.mathworks.com/<wbr>matlabcentral/newsreader/view_<wbr>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" target="_blank">https://fossies.org/dox/<wbr>octave-4.0.3/saveas_8m_source.<wbr>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" target="_blank">https://fossies.org/dox/<wbr>octave-4.0.3/print_8m_source.<wbr>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"><div><div class="h5"><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="m_4348594392778442626HOEnZb"><div class="m_4348594392778442626h5"><br>
<br>
-----Original Message-----<br>
From: users [mailto:<a href="mailto:users-bounces@lists.scilab.org" target="_blank">users-bounces@lists.sc<wbr>ilab.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" target="_blank">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/sh<wbr>ow_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" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailma<wbr>n/listinfo/users</a><br>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailma<wbr>n/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="">-- <br><div class="m_4348594392778442626gmail_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>
</span></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>