morning to get a proper export menu on my figures.
h = uimenu(demo_fp, ...
uimenu(h, ...
"label" , gettext("Export Figure (Hack)"), ...
"callback" , "exportHack();", ...
// Horrible hack the should only work on my machine (linux 64bits.
// keep savec filename for future reference.
Post by Philipp Mühlmannpittywise driver() does also not brings the solution
interstingly playing with usecanvas() made it possible to only show
pushbuttons in a figure.
usecanvas(%T);
f=figure();
plot2d();
h=uicontrol(f,'unit','normalized',"style","pushbutton","string","pushbutton", 'Position',[0.1, 0.7, 0.2, 0.1]);
h=uicontrol(f,'unit','normalized',"style","frame","string","frame", 'Position',[0.1, 0.5, 0.2, 0.1]);
but expoting this figure as a image file resulted in having the know style.
no pushbuttons rendered, only the figure of plot2d().....(also not the
frame)
exportUI() only recognizes figure handles (and axes) for the export.
since pushbuttons etc. are not figure handles they are not exported?
e.g.: handles.mypushbotton.style = "pushbutton"
...should be maybe "figure", "frame" or "axes" to be recognized by
exportUI().
Seems to be the same with "printfigure()"
Is it possible to export content of a xml-file to an figure/image?
saveGui(gcf(), 'screenshot.xml');
and than convert the content of the xml file into an image?
Dear all,
searching a little how GUI's can be "screenshotted" in Matlab
https://de.mathworks.com/matlabcentral/newsreader/view_thread/146264
<https://de.mathworks.com/matlabcentral/newsreader/view_thread/146264>
[...] " In order to show users without atlab on their desktop
the output, i want to create a export function."
This could be the reason for having the oppertunity of
screenshotting a GUI.
[name,path,index] = uiputfile
saveas(guifigurehandle,[path name]);
while "saveas" calls "print"
https://fossies.org/dox/octave-4.0.3/saveas_8m_source.html
<https://fossies.org/dox/octave-4.0.3/saveas_8m_source.html>
The print.m code is than way beyond my code understanding.
https://fossies.org/dox/octave-4.0.3/print_8m_source.html
<https://fossies.org/dox/octave-4.0.3/print_8m_source.html>
best regards,
Phil
2016-11-02 23:07 GMT+01:00 Rafael Guerra
Hi Antoine,
I do not have an answer but a question, if you will.
Why is it important for you to export the whole shebang
from Scilab?
For the regular figures the export functions work fine and
generate high-resolution post-script files.
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.
Thanks and regards,
Rafael
-----Original Message-----
Antoine Monmayrant
Sent: Tuesday, November 01, 2016 9:41 PM
Subject: [Scilab-users] Exporting figures containing
uicontrols to any format
Hi everyone,
After a long fight to build fancy graphics with uicontrols
to demo some physics, I am now stuck because of bug 14502
( https://bugzilla.scilab.org/show_bug.cgi?id=14502
<https://bugzilla.scilab.org/show_bug.cgi?id=14502> ).
Basically, I have no way to export my figure to any format
(ie no exportUI(gcf()) and no xs2something).
As any of you ever managed to export a figure with
uicontrols where both the plots and the uicontrols are
well rendered?
Antoine
1) Demos->GUI->Uicontrols 2 //(or any with uicontrols)
2) h=gcf();xs2svg(h, 'h.svg'); // or any other format
3) open h.svg, it's empty
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>
--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
There we have the salad.
--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
There we have the salad.
--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
There we have the salad.
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users