Changeset 1330 in lmdz_wrf
- Timestamp:
- Nov 15, 2016, 4:55:28 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1328 r1330 10364 10364 print " passed value of '" + dist + "' does not fit", Nfig, 'figures' 10365 10365 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 10366 10372 # Special case on Nfigs == 2 10367 10373 if Nfig == 2: … … 10371 10377 10372 10378 # 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): 10374 10381 vc = Ncol 10375 10382 vr = Nrow 10376 10383 Ncol = vr 10377 10384 Nrow = vc 10385 Nrest = np.mod(Nfig,Ncol) 10378 10386 10379 10387 print ' ' + fname + ': table of figures of: ', Ncol, 'columns', Nrow, 'rows' … … 10456 10464 obf.write('&\n') 10457 10465 iifig = iifig + 1 10458 10459 10466 10460 10467 obf.write('\\end{tabular}\n')
Note: See TracChangeset
for help on using the changeset viewer.