Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-28 Thread Samuel Gougeon
Le 28/02/2019 à 20:45, Samuel Gougeon a écrit : Hello, .../... It's possible to export Scilab graphics directly in EMF format with xs2emf() since Scilab 5.5.0. I have never used it, but it's available. When using xs2emf() with Scilab 6.0.2 on Windows7, a (modal) error occurs (*) -->

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-28 Thread Samuel Gougeon
Hello, Le 28/02/2019 à 09:26, Dang Ngoc Chan, Christophe a écrit : Hello, Concerning the following point (which is not related to Scilab): 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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-27 Thread Izabela Wójcik-Grząba
Samuel, Federico, Oleksiy, Thank you a lot for your feedback. I will check your ideas and find out which will be the best for me. Why are you using a uicontrol frame? Samuel, the reason is simple. When I created the code for this figure about a year ago I was a real beginner in Scilab so I

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread ol.bond
Dear Izabela, I had the same problem when working with GUI containing various control and plot frame. Eventually, I found the solution. The solution consists in copying of the axes handle from the frame to a newly created figure. For example, in my case, I have the following GUI

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Federico Miyara
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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Samuel Gougeon
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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Izabela Wójcik-Grząba
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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Federico Miyara
Izabela, Oh, I see... no idea for now... 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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Samuel Gougeon
Le 26/02/2019 à 17:37, Izabela Wójcik-Grząba a écrit : Otherwise, you may destroy them just for saving the remaining figure. It is an idea, but how to do it properly? My figure contains to frames. In one of them there are some checkboxes which change the visibility of some parts of the

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Izabela Wójcik-Grząba
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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Izabela Wójcik-Grząba
Otherwise, you may destroy them just for saving the remaining figure. It is an idea, but how to do it properly? My figure contains to frames. In one of them there are some checkboxes which change the visibility of some parts of the plot. The plot is in the second frame. I would like to

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Federico Miyara
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

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Samuel Gougeon
Le 26/02/2019 à 17:13, Izabela Wójcik-Grząba a écrit : But my problem is that in my figure appart from my plot I have different uicontrols, so when I use one of the xs2... commands it gives me a blank picture. Aa. I would try to turn all uicontrols.visible="off", and then try xs2##().

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Izabela Wójcik-Grząba
But my problem is that in my figure appart from my plot I have different uicontrols, so when I use one of the xs2... commands it gives me a blank picture. Iza W dniu 26.02.2019 17:07, Samuel Gougeon napisał(a): Le 26/02/2019 à 15:15, Izabela Wójcik-Grząba a écrit : Hello, I know that

Re: [Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Samuel Gougeon
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

[Scilab-users] Export plot from figure with uicontrols

2019-02-26 Thread Izabela Wójcik-Grząba
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 and also an .eps file. Do you have any other method