Changeset 1070 in lmdz_wrf for trunk/tools/drawing.py


Ignore:
Timestamp:
Aug 31, 2016, 4:08:53 PM (8 years ago)
Author:
lfita
Message:

Fixing axis labels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r1038 r1070  
    147147##                break
    148148##        if not cutdim: dimnamesv.append(objvars.dimensions[idd])
    149     dimnamesv = [vdimyn, vdimxn]
     149    dimnamesv = [vdimxn, vdimyn]
    150150
    151151    if drw.searchInlist(objvars.ncattrs(),'units'):
     
    311311    valshad, dimsshad = drw.slice_variable(objvars, dimvals.replace(',','|'))
    312312
    313     dimnamesv = [vdimyn, vdimxn]
     313    dimnamesv = [vdimxn, vdimyn]
    314314
    315315    varunits = objvars.getncattr('units')
     
    525525##                break
    526526##        if not cutdim: dimnamesv.append(objvars.dimensions[idd])
    527     dimnamesv = [vdimyn, vdimxn]
     527    dimnamesv = [vdimxn, vdimyn]
    528528
    529529    varunits = []
     
    628628        [dimvals/c]: list of [dimname]|[value] telling at which dimension of the
    629629          variable a given value is required (no dimension name, all the length)
    630         [dimx/yvn]: ',' list with the name of the variables with the values of the dimensions
     630        [dimxvn]: name of the variables with the values of the dimension of the x-axis
     631        [dimyvn]: name of the variables with the values of the dimension of the y-axis
    631632        [colorbar]: name of the color bar
    632633        [ckind]: kind of contours
     
    744745    valcont, dimscont = drw.slice_variable(objvarc, dimvalc.replace(',','|'))
    745746
    746     dimnamesv = [vdimyn, vdimxn]
     747    dimnamesv = [vdimxn, vdimyn]
    747748
    748749    varunits = []
     
    923924##                break
    924925##        if not cutdim: dimnamesv.append(objvars.dimensions[idd])
    925     dimnamesv = [vdimyn, vdimxn]
     926    dimnamesv = [vdimxn, vdimyn]
    926927
    927928    varunits = objvars.getncattr('units')
     
    10681069    valshad, dimsshad = drw.slice_variable(objvars, dimvals.replace(',','|'))
    10691070
    1070     dimnamesv = [vdimyn, vdimxn]
     1071    dimnamesv = [vdimxn, vdimyn]
    10711072
    10721073    varunits = objvars.getncattr('units')
Note: See TracChangeset for help on using the changeset viewer.