Ignore:
Timestamp:
Nov 30, 2011, 10:05:32 AM (13 years ago)
Author:
acolaitis
Message:

PYTHON. Corrected bugs related to contour plots with overlines, and mymath.mean() with no Axis specified. Now working on LES format for pp.py... :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot.py

    r426 r427  
    280280              if var2 == 'HGT':  zelevels = np.arange(-10000.,30000.,2000.)
    281281              if mapmode == 0:
    282                   x, y = define_axis(lon,lat,vert,time,indexlon,indexlat,indexvert,\
    283                         indextime,what_I_plot.shape, len(all_var2[index_f].shape),vertmode)
     282                  what_I_plot, x, y = define_axis(lon,lat,vert,time,indexlon,indexlat,indexvert,\
     283                        indextime,what_I_plot, len(all_var2[index_f].shape),vertmode)
    284284              ### If we plot a 2-D field
    285285              if len(what_I_plot.shape) is 2:
    286286                  cs = contour(x,y,what_I_plot, zelevels, colors='k', linewidths = 1 ) #0.33 colors='w' )# , alpha=0.5)
    287                   #if typefile in ['gcm']: clabel(cs,fmt = '%1.2e')
     287#                  clabel(cs,#zelevels[::2],
     288#                     inline=3,
     289#                     fmt='%1.1e',
     290#                     fontsize=7)
    288291              ### If we plot a 1-D field
    289292              elif len(what_I_plot.shape) is 1:
Note: See TracChangeset for help on using the changeset viewer.