Changeset 1330 in lmdz_wrf


Ignore:
Timestamp:
Nov 15, 2016, 4:55:28 PM (8 years ago)
Author:
lfita
Message:

Fixing right larger number of columns than rows in `latex_fig_array'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1328 r1330  
    1036410364            print "  passed value of '" + dist + "' does not fit", Nfig, 'figures'
    1036510365            quit(-1)
     10366    else:
     10367        print errormsg
     10368        print '  ' + fname + ": figure distribution '" + dist + "' does not exist!!"
     10369        print "    existing ones: 'sqr', [Ncol]x[Nrow]"
     10370        quit(-1)
     10371       
    1036610372    # Special case on Nfigs == 2
    1036710373    if Nfig == 2:
     
    1037110377
    1037210378    # We prefer lines of figures rather than columns
    10373     if dist == 'sqr' and (Ncol == 1 and Nrow > 1):
     10379    print 'Lluis Ncol:', Ncol, 'Nrow:', Nrow
     10380    if dist == 'sqr' and (Ncol < Nrow):
    1037410381        vc = Ncol
    1037510382        vr = Nrow
    1037610383        Ncol = vr
    1037710384        Nrow = vc
     10385        Nrest = np.mod(Nfig,Ncol)
    1037810386
    1037910387    print '  ' + fname + ': table of figures of: ', Ncol, 'columns', Nrow, 'rows'
     
    1045610464                            obf.write('&\n')
    1045710465                        iifig = iifig + 1
    10458 
    1045910466   
    1046010467        obf.write('\\end{tabular}\n')
Note: See TracChangeset for help on using the changeset viewer.