Changeset 2550 in lmdz_wrf


Ignore:
Timestamp:
May 22, 2019, 4:25:37 PM (6 years ago)
Author:
lfita
Message:

Adding:

  • $cm yr^{-1}$' and $cm year{-1}$' into 'units_lunits'
  • Fixing `NrowNcol_figure'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2549 r2550  
    19531953        elif u == 'C': lu='$^{\circ}C$'
    19541954        elif u == 'Celsius/d': lu='$^{\circ}Cd^{-1}$'
     1955        elif u == 'cm/yr': lu='$cm yr^{-1}$'
     1956        elif u == 'cmyr-1': lu='$cm yr^{-1}$'
     1957        elif u == 'cm yr-1': lu='$cm yr^{-1}$'
     1958        elif u == 'cm/year': lu='$cm year^{-1}$'
     1959        elif u == 'cmyear-1': lu='$cm year^{-1}$'
     1960        elif u == 'cm year-1': lu='$cm year^{-1}$'
    19551961        elif u == 'days': lu='$day$'
    19561962        elif u == 'Degrees': lu='$degrees$'
     
    31643170    if kind == 'squared':
    31653171        Ncol = int(np.sqrt(Npanels))
    3166         Nrow = Npanels / Ncol + 1
     3172        Nrow = Npanels / Ncol
    31673173        if Ncol > Nrow:
    31683174            Ncol0 = Ncol + 0
    31693175            Ncol = Nrow + 0
    31703176            Nrow = Ncol0
     3177        if Ncol*Nrow < Npanels: Nrow = Nrow + 1
    31713178    elif kind[0:6] == 'colfix':
    31723179        Ncol = int(kind.split(',')[1])
Note: See TracChangeset for help on using the changeset viewer.