Changeset 2116 in lmdz_wrf for trunk/tools/generic_tools.py


Ignore:
Timestamp:
Aug 30, 2018, 6:49:27 PM (6 years ago)
Author:
lfita
Message:

Fixing `create_LateX_figs'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r2110 r2116  
    1349813498    """ Function to create a LaTeX from a folder with multiple plots from different
    1349913499      values
     13500      folder: folder with figures
    1350013501      plots: list of names of plots
    1350113502      values: list of values for each plot to guess sort of plots
     
    1357213573        if len(unsortfigs) != 0:
    1357313574            Nunsortfig = len(unsortfigs)
     13575            print infmsg
     13576            print '  ' + fname + ': sorting unsorted:', Nunsortfig, 'figures !!'
     13577            print '    figures:', unsortfigs
    1357413578            Ncol = int(np.sqrt(Nunsortfig))
    1357513579            Nrow = Nvalfig/Ncol
     
    1358913593
    1359013594                otex.write('\\includegraphics[width=' + str(frcwth) +            \
    13591                    '\\textwidth]{' + valfigs[ifig-1] + '}' + endchar + '\n')
     13595                   '\\textwidth]{' + valfn + '}' + endchar + '\n')
    1359213596                ifig = ifig + 1
    1359313597
    13594             if np.mod(ifig-1,Ncol) != 0:
    13595                 endrow = Ntchar(' & ', np.mod(ifig-1,Ncol))
     13598            #if np.mod(ifig-1,Ncol) != 0:
     13599            #    endrow = Ntchar(' & ', np.mod(ifig-1,Ncol))
     13600            #    otex.write(endrow + '\n')
     13601            if Nunsortfig - ifig + 1 != 0:
     13602                endrow = Ntchar(' & ', Nunsortfig - ifig + 1)
    1359613603                otex.write(endrow + '\n')
    1359713604            otex.write('\\end{tabular}\n')
Note: See TracChangeset for help on using the changeset viewer.