[scilab-Users] how to remove

Allan CORNET allan.cornet at scilab.org
Wed Aug 25 16:18:00 CEST 2010


To close all figures
xdel(winsid())

Allan

-----Message d'origine-----
De : Antoine Monmayrant [mailto:amonmayr at laas.fr] 
Envoyé : mercredi 25 août 2010 16:05
À : users at lists.scilab.org
Objet : Re: [scilab-Users] how to remove 

Hi Paul,

I created this small function to close all the existing graphic windows:

////////////////////////////////////////////////
//close all opened graphic windows
function CloseAllFig()
   ids_array=winsid();
   for i=1:length(ids_array)
      id=ids_array(i);
      close(get_figure_handle(id));
   end
endfunction
////////////////////////////////////////////////
 
Hope it helps,

Antoine

Le Mercredi 25 Août 2010 15:42 CEST, "Carrico, Paul" <paul.carrico at esterline.com> a écrit: 
 
> All
> 
> How can I remove automatically remove all the windows after plot2d 
> instruction ?
> 
> I tried clf() that resets the drawing or close() but neither of the 2 
> keywords close the window ; I looked for another instruction ... but I 
> don't see anything
> 
> Cheers
> 
> Paul
> 
> ##########################################"
> 
> an example :
> 
>   scf(2);
>   plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2);
>   xtitle('Partie de la courbe de traction correspondante (boucle 
> 1)','epsilon','sigma');
>   xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' +
> string(nom_fichier) + '.jpg');          // permet d'exporter le graphe
> dans une image jpg
>   clf(2);
>   // close(2);
> 
> 
>  
> 
> 
> ----------------------------------------------------------------------
> ----------
> 
> 
> Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.
> 
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.
> 
 
 
 
 





More information about the users mailing list