Changeset 1524 in lmdz_wrf


Ignore:
Timestamp:
Apr 12, 2017, 11:08:14 PM (8 years ago)
Author:
lfita
Message:

Improving `draw_2lines' and fixing some mistakes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r1516 r1524  
    53005300       [widths]:[styles]:[sizemarks]:[marks]:[graphtitle]:[labelaxis]:[legvals]:[figname]:[figkind]:[close]
    53015301        [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)
    53045306        [varangeaxis]: ',' separated list of range (min,max) for common axis values ('None', automatic; 'Extrs' from
    53055307          values extremes)
     
    53105312        [styles]: ',' list with the styles of the lines ('None', automatic)
    53115313        [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)
    53135315        [graphtitle]: title of the figure ('!' for spaces)
    53145316        [labelaxis]: label in the figure of the common axis ('!' for spaces)
     
    53485350    styles = gen.str_list(values.split(':')[8],',')
    53495351    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],';')
    53515353    graphtitle = values.split(':')[11].replace('!',' ')
    53525354    labelaxis = values.split(':')[12].replace('!',' ')
     
    53795381    varangeA = np.zeros((2),dtype=np.float)
    53805382
     5383    valsA = gen.variables_values(invarns[0])
    53815384    if gen.searchInlist(objvA.ncattrs(), 'units'):
    53825385        varunits.append(drw.units_lunits(objvA.getncattr('units')))
    53835386    else:
    5384         valsA = gen.variables_values(invarns[0])
    53855387        varunits.append(drw.units_lunits(valsA[5]))
    53865388    if varangeA0 == 'None':
     
    54195421    varangeB = np.zeros((2),dtype=np.float)
    54205422
     5423    valsB = gen.variables_values(invarns[1])
    54215424    if gen.searchInlist(objvB.ncattrs(), 'units'):
    54225425        varunits.append(drw.units_lunits(objvB.getncattr('units')))
    54235426    else:
    5424         valsB = gen.variables_values(invarns[1])
    54255427        varunits.append(drw.units_lunits(valsB[5]))
    54265428    if varangeB0 == 'None':
    54275429        varangeB = [valsB[2], valsB[3]]
    54285430    elif varangeB0 == 'Extrs':
    5429         varangeA = [np.min(varvalsA), np.max(varvalsA)]
     5431        varangeB = [np.min(varvalsB), np.max(varvalsB)]
    54305432    else:
    54315433        for iv in range(2): varangeB[iv] = np.float(varangeB0.split(',')[iv])
Note: See TracChangeset for help on using the changeset viewer.