Changeset 1524 in lmdz_wrf
- Timestamp:
- Apr 12, 2017, 11:08:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r1516 r1524 5300 5300 [widths]:[styles]:[sizemarks]:[marks]:[graphtitle]:[labelaxis]:[legvals]:[figname]:[figkind]:[close] 5301 5301 [commonvardim]: name of the common variable-dimension 5302 [varangeA]: ',' separated list of range (min,max) for A values ('None', automatic; 'Extrs' from values extremes) 5303 [varangeB]: ',' separated list of range (min,max) for B values ('None', automatic; 'Extrs' from values extremes) 5302 [varangeA]: ',' separated list of range (min,max) for A values ('None', automatic from 5303 'variable_values.dat'; single 'Extrs' from values extremes) 5304 [varangeB]: ',' separated list of range (min,max) for B values ('None', automatic from 5305 'variable_values.dat'; single 'Extrs' from values extremes) 5304 5306 [varangeaxis]: ',' separated list of range (min,max) for common axis values ('None', automatic; 'Extrs' from 5305 5307 values extremes) … … 5310 5312 [styles]: ',' list with the styles of the lines ('None', automatic) 5311 5313 [sizemarks]: ',' list with the size of the markers of the lines ('None', automatic) 5312 [marks]: ' ,' list with the markers of the lines ('None', automatic)5314 [marks]: ';' list with the markers of the lines ('None', automatic) 5313 5315 [graphtitle]: title of the figure ('!' for spaces) 5314 5316 [labelaxis]: label in the figure of the common axis ('!' for spaces) … … 5348 5350 styles = gen.str_list(values.split(':')[8],',') 5349 5351 sizemarks = gen.str_list_k(values.split(':')[9],',','np.float') 5350 marks = gen.str_list(values.split(':')[10],' ,')5352 marks = gen.str_list(values.split(':')[10],';') 5351 5353 graphtitle = values.split(':')[11].replace('!',' ') 5352 5354 labelaxis = values.split(':')[12].replace('!',' ') … … 5379 5381 varangeA = np.zeros((2),dtype=np.float) 5380 5382 5383 valsA = gen.variables_values(invarns[0]) 5381 5384 if gen.searchInlist(objvA.ncattrs(), 'units'): 5382 5385 varunits.append(drw.units_lunits(objvA.getncattr('units'))) 5383 5386 else: 5384 valsA = gen.variables_values(invarns[0])5385 5387 varunits.append(drw.units_lunits(valsA[5])) 5386 5388 if varangeA0 == 'None': … … 5419 5421 varangeB = np.zeros((2),dtype=np.float) 5420 5422 5423 valsB = gen.variables_values(invarns[1]) 5421 5424 if gen.searchInlist(objvB.ncattrs(), 'units'): 5422 5425 varunits.append(drw.units_lunits(objvB.getncattr('units'))) 5423 5426 else: 5424 valsB = gen.variables_values(invarns[1])5425 5427 varunits.append(drw.units_lunits(valsB[5])) 5426 5428 if varangeB0 == 'None': 5427 5429 varangeB = [valsB[2], valsB[3]] 5428 5430 elif varangeB0 == 'Extrs': 5429 varange A = [np.min(varvalsA), np.max(varvalsA)]5431 varangeB = [np.min(varvalsB), np.max(varvalsB)] 5430 5432 else: 5431 5433 for iv in range(2): varangeB[iv] = np.float(varangeB0.split(',')[iv])
Note: See TracChangeset
for help on using the changeset viewer.