<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    Izabela, <br>
    <br>
    I've just tried what I suggested and obtained a good figure.<br>
    <br>
    Steps:<br>
    <br>
    1) Run the following example<span style="color:rgb(0,0,0);"> (or any
      other)<br>
      <br>
      t</span> <span style="color:rgb(92,92,92);">=</span> <span
      style="color:rgb(188,143,143);">0</span><span
      style="color:rgb(255,170,0);">:</span><span
      style="color:rgb(188,143,143);">0.01</span><span
      style="color:rgb(255,170,0);">:</span><span
      style="color:rgb(188,143,143);">2</span><span
      style="color:rgb(92,92,92);">*</span><span
      style="color:rgb(218,112,214);">%pi</span><span
      style="color:rgb(0,0,0);">;</span> <span
      style="color:rgb(0,0,0);"><br>
      x</span> <span style="color:rgb(92,92,92);">=</span> <span
      style="color:rgb(50,185,185);">sin</span><span
      style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(0,0,0);">t</span><span
      style="color:rgb(74,85,219);">)</span><span
      style="color:rgb(0,0,0);">;</span> <span
      style="color:rgb(50,185,185);"><br>
      figure</span><span style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(188,143,143);">1</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(188,143,143);">'</span><span
      style="color:rgb(188,143,143);">BackgroundColor</span><span
      style="color:rgb(188,143,143);">'</span><span
      style="color:rgb(0,0,0);">,</span> <span
      style="color:rgb(74,85,219);">[</span><span
      style="color:rgb(188,143,143);">1</span><span
      style="color:rgb(0,0,0);">,</span><span
      style="color:rgb(188,143,143);">1</span><span
      style="color:rgb(0,0,0);">,</span><span
      style="color:rgb(188,143,143);">1</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(0,0,0);"><br>
      scf</span><span style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(188,143,143);">1</span><span
      style="color:rgb(74,85,219);">)</span> <span
      style="color:rgb(0,0,0);"><br>
      clf</span> <br>
    <span style="color:rgb(0,0,0);">plot</span><span
      style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(0,0,0);">t</span><span style="color:rgb(0,0,0);">,</span><span
      style="color:rgb(0,0,0);">x</span><span
      style="color:rgb(74,85,219);">)</span> <br>
    <span style="color:rgb(0,0,0);">h</span><span
      style="color:rgb(92,92,92);">=</span><span
      style="color:rgb(50,185,185);">uicontrol</span><span
      style="color:rgb(74,85,219);">(</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">style</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(0,0,0);">,</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">pushbutton</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(0,0,0);">,</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">string</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(0,0,0);">,</span><span
      style="color:rgb(188,143,143);">"</span><span
      style="color:rgb(188,143,143);">$x^2$</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><br>
    <br>
    This is the Scilab oputput<br>
    <br>
    <img src="cid:part1.01040900.07070707@fceia.unr.edu.ar" alt=""> <br>
    <br>
    <br>
    Note the button at the bottom left<br>
    <br>
    <br>
    2) On the figure window:<br>
    <br>
    File / Export to... / SVG Image / Save<br>
    <br>
    3) Run GIMP 2.8 (I guess any version works, I use a portable one
    from PortableApps, no need to install)<br>
    <br>
    File / Open <br>
    Locate the path and file name <br>
    Open<br>
    A rendering dialog appears.<br>
    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)<br>
    The image apears<br>
    Export<br>
    Apply a .jpg extension<br>
    Choose a folder<br>
    Export<br>
    <br>
    This is what I get <br>
    <img src="cid:part2.02050804.03090504@fceia.unr.edu.ar" alt=""><br>
    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).<br>
    <br>
    Federico<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 26/02/2019 13:41, Izabela
      Wójcik-Grząba wrote:<br>
    </div>
    <blockquote cite="mid:0b709390e2eb90d040b0e7bb2ffb9ed3@il.pw.edu.pl"
      type="cite">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. <br>
      <br>
      <br>
      <br>
      W dniu 26.02.2019 17:34, Federico Miyara napisał(a): <br>
      <blockquote type="cite">Izabela, <br>
        <br>
        I've had the same problem. Saving as eps is theoretically the
        solution <br>
        but I couldn't manage to make it compatible with, for instance,
        Word. <br>
        My solution has been to save the figure as svg (a vectorized
        format), <br>
        then open it with GIMP, a free open source image editor, then
        select <br>
        an appropriate size (large enough so that when inserted in a
        word <br>
        processing software has a very high, printable resolution) and
        save as <br>
        high quality jpg. If the export contains things you don't want,
        you <br>
        simple trim out those parts. <br>
        <br>
        Regards, <br>
        <br>
        Federico Miyara <br>
        <br>
        <br>
        On 26/02/2019 13:07, Samuel Gougeon wrote: <br>
        <blockquote type="cite">Le 26/02/2019 à 15:15, Izabela
          Wójcik-Grząba a écrit : <br>
          <blockquote type="cite">Hello, <br>
            <br>
            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
            <br>
          </blockquote>
          <br>
          The saved screenshot has the size of the figure when you save
          it. So: <br>
          <br>
          plot2d() <br>
          set(gcf(), "visible","off","axes_size",[2440,1840]); // for
          instance <br>
          xs2png(0, "bigfig.png") <br>
          <br>
          // winopen("bigfig.png") <br>
          <br>
          should do what you expect. <br>
          <br>
          <blockquote type="cite">and also an .eps file. <br>
          </blockquote>
          <br>
          PostScript is a vectorial format. So the rendering from it
          should be scalable according to your requirements. <br>
          <br>
          Samuel <br>
          <br>
          _______________________________________________ <br>
          users mailing list <br>
          <a class="moz-txt-link-abbreviated"
            href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
          <br>
          <a class="moz-txt-link-freetext"
            href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
          <br>
          <br>
          <br>
        </blockquote>
        <br>
        <br>
        --- <br>
        El software de antivirus Avast ha analizado este correo
        electrónico en <br>
        busca de virus. <br>
        <a class="moz-txt-link-freetext"
          href="https://www.avast.com/antivirus">https://www.avast.com/antivirus</a>
        <br>
        <br>
        _______________________________________________ <br>
        users mailing list <br>
        <a class="moz-txt-link-abbreviated"
          href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
        <br>
        <a class="moz-txt-link-freetext"
          href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
        <br>
      </blockquote>
      _______________________________________________ <br>
      users mailing list <br>
      <a class="moz-txt-link-abbreviated"
        href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
      <br>
      <a class="moz-txt-link-freetext"
        href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
      <br>
      <br>
      <br>
    </blockquote>
    <br>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>           </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>