Izabela,
I've just tried what I suggested and obtained a good figure.
Steps:
1) Run the following example(or any other)
t = 0:0.01:2*%pi;
x = sin(t);
figure(1, 'BackgroundColor', [1,1,1]);
scf(1)
clf
plot(t,x)
h=uicontrol("style","pushbutton","string","$x^2$");
This is the Scilab oputput
Note the button at the bottom left
2) On the figure window:
File / Export to... / SVG Image / Save
3) Run GIMP 2.8 (I guess any version works, I use a portable one from
PortableApps, no need to install)
File / Open
Locate the path and file name
Open
A rendering dialog appears.
Select the desired X and Y size (by default they are linked to preserve
aspect ratio). You can also apply a multiplier (I first used 5x to get
high resolution, but the example below is with 1x to avoid email bouncing)
The image apears
Export
Apply a .jpg extension
Choose a folder
Export
This is what I get
Note the UI button is gone. The image above is not high resolution
because there is a limit of 100 kb for this list, but with 5x the image
occupies onli 227 kb and is truly high resolution. If you like I can
send privately the 5x version so you can check. There is no limit to the
attainable rtesolution (other than memory issues, I guess).
Federico
On 26/02/2019 13:41, Izabela Wójcik-Grząba wrote:
Thanks Federico, but as I wrote in an answer to Samuel, the problem is
that you can't export a figure with uicontrols because you get a blank
picture.
W dniu 26.02.2019 17:34, Federico Miyara napisał(a):
Izabela,
I've had the same problem. Saving as eps is theoretically the solution
but I couldn't manage to make it compatible with, for instance, Word.
My solution has been to save the figure as svg (a vectorized format),
then open it with GIMP, a free open source image editor, then select
an appropriate size (large enough so that when inserted in a word
processing software has a very high, printable resolution) and save as
high quality jpg. If the export contains things you don't want, you
simple trim out those parts.
Regards,
Federico Miyara
On 26/02/2019 13:07, Samuel Gougeon wrote:
Le 26/02/2019 à 15:15, Izabela Wójcik-Grząba a écrit :
Hello,
I know that there's no official method to export a figure
containing uicontrols but I need to export only my plot which is in
the frame of the figure. Ordinary print screen is not enough
because I may need a bigger size of a picture
The saved screenshot has the size of the figure when you save it. So:
plot2d()
set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance
xs2png(0, "bigfig.png")
// winopen("bigfig.png")
should do what you expect.
and also an .eps file.
PostScript is a vectorial format. So the rendering from it should be
scalable according to your requirements.
Samuel
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
---
El software de antivirus Avast ha analizado este correo electrónico en
busca de virus.
https://www.avast.com/antivirus
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
---
El software de antivirus Avast ha analizado este correo electrónico en busca de
virus.
https://www.avast.com/antivirus
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users