Changeset 2116 in lmdz_wrf for trunk/tools/generic_tools.py
- Timestamp:
- Aug 30, 2018, 6:49:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r2110 r2116 13498 13498 """ Function to create a LaTeX from a folder with multiple plots from different 13499 13499 values 13500 folder: folder with figures 13500 13501 plots: list of names of plots 13501 13502 values: list of values for each plot to guess sort of plots … … 13572 13573 if len(unsortfigs) != 0: 13573 13574 Nunsortfig = len(unsortfigs) 13575 print infmsg 13576 print ' ' + fname + ': sorting unsorted:', Nunsortfig, 'figures !!' 13577 print ' figures:', unsortfigs 13574 13578 Ncol = int(np.sqrt(Nunsortfig)) 13575 13579 Nrow = Nvalfig/Ncol … … 13589 13593 13590 13594 otex.write('\\includegraphics[width=' + str(frcwth) + \ 13591 '\\textwidth]{' + valf igs[ifig-1]+ '}' + endchar + '\n')13595 '\\textwidth]{' + valfn + '}' + endchar + '\n') 13592 13596 ifig = ifig + 1 13593 13597 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) 13596 13603 otex.write(endrow + '\n') 13597 13604 otex.write('\\end{tabular}\n')
Note: See TracChangeset
for help on using the changeset viewer.