<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Samuel, <br>
    what I really do is this:<br>
    <br>
    <pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><big><big>xdel()
figure_size=[1800 900];
cf=figure(1,'position',[0 0 figure_size],'background',8,'immediate_drawing','off','visible','off');
//...
//plot3d and param3d commands
// ...
Rotation_Angles=[85 -64];
ca=<span style="text-decoration: underline;">gca</span>();
ca.box='off';
xtitle('$\Huge{\text{Isometrisch}}$','','') 
cf.immediate_drawing='on'; cf.visible='on';
 
m1= uimenu(cf,'label','Himmelspol','callback','ra=[0,0],xtitle(''$\Huge{\text{Himmelspol}}$'','','')');
m2= uimenu(cf,'label','Ost','callback','ra=[90,90],xtitle(''$\Huge{\text{Ost}}$'','','')');
m3= uimenu(cf,'label','Äquator','callback','ra=[90,0],xtitle(''$\Huge{\text{Äquator}}$'','','')');
m4= uimenu(cf,'label','West','callback','ra=[90,-90],xtitle(''$\Huge{\text{West}}$'','','')');
m5= uimenu(cf,'label','Isometrisch','callback','ra=Rotation_Angles,xtitle(''$\Huge{\text{Isometrisch}}$'','','')');
m6= uimenu(cf,'label','Animation','callback','Case=1,xtitle(''$\Huge{\text{Rotierend}}$'','','')');
m7= uimenu(cf,'label', 'Aus', 'callback', "t=%f");

Case=0;<span style="font-style: italic;">//Initiierung für Anfangspassage, d.h.keine Animation</span>
ra=Rotation_Angles;<span style="font-style: italic;">//Initiierung für Anfangspassage</span>
t=%t;
while t==%t    
  if Case==1<span style="font-style: italic;">//m6</span>
      Case=0;
      rota=ca.rotation_angles;
      for k=[0:1:90 89:-1:0]
         drawlater()
         ca.rotation_angles=rota+[0 k];
         sleep(10);
         drawnow()
      end<span style="font-style: italic;">//for k=[ .... ]</span>
  else     
       sleep(200)
       ca.rotation_angles=ra;    
  end<span style="font-style: italic;">//if</span>
end<span style="font-style: italic;">//while</span></big></big>
</pre>
    <br>
    This works satisfactorily. I could not get the result without the
    infinite loop.<br>
    <br>
    Kind regards<br>
    Jens<br>
-----------------------------------------------------------------------<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 18.12.2016 16:36, schrieb Samuel
      Gougeon:<br>
    </div>
    <blockquote cite="mid:5856AD01.8060001@free.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Le 18/12/2016 16:20, Jens Simon Strom
        a écrit :<br>
      </div>
      <blockquote cite="mid:5856A928.8070306@hslmg.de" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        Hi Samuel,<br>
        Without the loop the script finishes and gives no chance to
        change anything. <br>
      </blockquote>
      ?<br>
      Have you tried? Since the figure and its menus are still here, you
      can still use them, even if the script having generating them is
      finished.<br>
      <br>
      A callback is an asynchronous independent script that is performed
      just when it is called, "at any time" (actually, its instructions
      are queued when it is called, and performed ASAP).<br>
      <br>
      You don't need to block the console with a loop to make changes or
      actions on existing graphics.<br>
      But if you want to make it "modal", that is to say waiting for and
      compelling the user to do something, yes, a loop is required.<br>
      BTW, the loop that you use is infinite: there is no way to escape
      it smoothly, since<br>
      while 1<br>
      is always true. <br>
      <br>
      SG<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>