Ignore:
Timestamp:
09/21/09 15:05:35 (15 years ago)
Author:
pinsard
Message:

usage of contour instead of contoutf when octave 3.2.2 is running

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/RESULTATS/eof_NCEP_an.m

    r29 r42  
    8383% propres. 
    8484% 
     85% KNOWN PROBLEMS 
     86% ============== 
     87% 
     88% - fplod 2009-09-21T12:58:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
     89% 
     90%   *  octave 3.2.2 line 0: Internal error : unknown tic type 
     91% 
    8592% EVOLUTIONS 
    8693% ========== 
    8794% 
    8895% $Id$ 
     96% 
     97% - fplod 2009-09-21T12:57:36Z aedon.locean-ipsl.upmc.fr (Darwin) 
     98% 
     99%   * octave 3.2.2 contourf problem is not solved but a 
     100%     workaround allows (``contour`` instead of ``contourf``) to run this 
     101%     script till end. 
    89102% 
    90103% - fplod 2009-08-26T10:26:35Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    320333   end 
    321334   z=squeeze(TABEOF(:,:,i)); 
    322    contourf(x,y,z,lev); 
     335   if (run_octave == 0) 
     336    contourf(x,y,z,lev); 
     337   else 
     338    switch OCTAVE_VERSION 
     339     case {'3.0.2','3.0.5'} 
     340      contourf(x,y,z,lev); 
     341     case {'3.2.2'} 
     342      contour(x,y,z,lev); 
     343     otherwise 
     344      contourf(x,y,z,lev); 
     345     end 
     346   end 
    323347   caxis(clip_lev); 
    324348   hold on 
Note: See TracChangeset for help on using the changeset viewer.