[scilab-Users] how to remove

ray joseph ray at aarden.us
Thu Aug 26 03:01:51 CEST 2010


Antoine,

Great job!  I really like the support I have seen in this group.

This example makes me wonder if there is an advantage if such looping
operations could be vectorized.  How would this example be vectorized?

Ray
________
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);
>
>




More information about the users mailing list