Changeset 41


Ignore:
Timestamp:
09/21/09 14:09:06 (15 years ago)
Author:
pinsard
Message:

usage of contour instead of contoutf when octave 3.2.2 is running

Location:
trunk/PROGRAMMES
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PROGRAMMES/carte_SST.m

    r40 r41  
    6666% improve description 
    6767% 
    68 % is there any way to call worldmap only once or at least read coast.m only  
     68% is there any way to call worldmap only once or at least read coast.m only 
    6969% once 
    7070% 
     
    7272% ============== 
    7373% 
     74% - fplod 2009-09-21T11:57:50Z aedon.locean-ipsl.upmc.fr (Darwin) 
     75% 
     76%   * Postcript affreux sous octave 3.2.2 : tout est tassé dans le coin 
     77%     bas gauche ! 
     78% 
    7479% - fplod 2009-08-26T08:46:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    7580% 
    76 %   * ne fonctionne pas sous octave 3.2.2 
     81%   * ne fonctionne pas sous octave 3.2.2 à cause de ``contourf`` 
    7782%     :: 
    7883%     error: gnuplot (as of v4.2) only supports 3D filled triangular patches 
     
    9095% $Id$ 
    9196% 
     97% - fplod 2009-09-21T11:50:23Z aedon.locean-ipsl.upmc.fr (Darwin) 
     98% 
     99%   * octave 3.2.2 contourf problem is not solved (see KNOWN PROBLEMS) but a 
     100%     workaround allows (``contour`` instead of ``contourf``) to run this 
     101%     script till end. 
     102% 
    92103% - fplod 2009-08-26T09:00:11Z aedon.locean-ipsl.upmc.fr (Darwin) 
    93104% 
     
    102113%     ``zeus$ lpr -o job-sheets='none' carte_SST.ps``, mais aucune feuille ne 
    103114%     sort. 
    104 %  
     115% 
    105116%     Pour info dans le fichier .eps produit par matlab, on pouvait lire 
    106117%     ``%!PS-Adobe-2.0 EPSF-1.2``. Aucun souci d'impression avec ce fichier ! 
     
    112123% 
    113124%   * suppression d'appel à contlab et colorbartype sous octave 
    114 %  
     125% 
    115126% - fplod 2009-08-25T10:40:16Z aedon.locean-ipsl.upmc.fr (Darwin) 
    116127% 
     
    125136%     fixent pas les même limites par défaut 
    126137%   * utilisation de ``contlab`` pour ++ 
    127 %  
     138% 
    128139% - fplod 2009-08-17T12:39:51Z aedon.locean-ipsl.upmc.fr (Darwin) 
    129140% 
     
    212223  end 
    213224  z=squeeze(tab_mens(:,:,iplot)); 
    214   contourf(x,y,z,lev) 
     225  if (run_octave == 0) 
     226   contourf(x,y,z,lev) 
     227  else 
     228   switch OCTAVE_VERSION 
     229    case {'3.0.2','3.0.5'} 
     230     contourf(x,y,z,lev) 
     231    case {'3.2.2'} 
     232     contour(x,y,z,lev) 
     233    otherwise 
     234     contourf(x,y,z,lev) 
     235   end 
     236  end 
    215237  caxis(clip_lev) 
    216238  hold on 
  • trunk/PROGRAMMES/eof_NCEP_sais.m

    r30 r41  
    8989% comprendre le pb octave 3.2.2 
    9090% 
     91% 
     92% KNOWN PROBLEMS 
     93% ============== 
     94% 
     95% - fplod 2009-09-21T11:57:50Z aedon.locean-ipsl.upmc.fr (Darwin) 
     96% 
     97%   * Postcripts affreux sous octave 3.2.2 : tout est tassé dans le coin 
     98%     bas gauche ! 
     99% 
    91100% EVOLUTIONS 
    92101% ========== 
    93102% 
    94103% $Id$ 
     104% 
     105% - fplod 2009-09-21T12:06:35Z aedon.locean-ipsl.upmc.fr (Darwin) 
     106% 
     107%   * octave 3.2.2 contourf problem is not solved (see KNOWN PROBLEMS) but a 
     108%     workaround allows (``contour`` instead of ``contourf``) to run this 
     109%     script till end. 
    95110% 
    96111% - fplod 2009-08-26T16:34:59Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    345360    contourf(x,y,z,lev); 
    346361   else 
     362    [x,y]=meshgrid(lon,lat); 
    347363    switch OCTAVE_VERSION 
    348      case {'3.0.2'} 
    349       [x,y]=meshgrid(lon,lat); 
     364     case {'3.0.2','3.0.5'} 
    350365      contourf(x,y,z,lev); 
    351366     case {'3.2.2'} 
    352       warning('www : do no know about octave 3.2.2 contourf usage'); 
    353 %  A(I): Index exceeds matrix dimension ++ 
     367      contour(x,y,z,lev); 
    354368     otherwise 
    355       warning('www : do no know about octave contourf usage'); 
     369      contourf(x,y,z,lev); 
    356370     end 
    357371   end 
Note: See TracChangeset for help on using the changeset viewer.