Changeset 218 in lmdz_wrf for trunk/tools/drawing.py


Ignore:
Timestamp:
Jan 14, 2015, 5:28:41 PM (10 years ago)
Author:
lfita
Message:

Committing without knowing what's new!? brbrbrbrbrb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r204 r218  
    14791479    draw_lines(ncfilens, values, varname):
    14801480      ncfilens= [filen] ',' separated list of netCDF files
    1481       values= [dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[graphk]
     1481      values= [dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[locleg]:[graphk]
    14821482        [dimvname]: name of the variable with he values of the common dimension
    14831483        [valuesaxis]: which axis will be used for the values ('x', or 'y')
     
    14861486        [vartit]: name of the variable in the graph
    14871487        [title]: title of the plot ('|' for spaces)
     1488        [locleg]: location of the legend (-1, autmoatic)
     1489          1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',
     1490          5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',
     1491          9: 'upper center', 10: 'center'
    14881492        [graphk]: kind of the graphic
    14891493      varname= variable to plot
     
    14981502        quit()
    14991503
    1500     expectargs = '[dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[graphk]'
     1504    expectargs = '[dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[locleg]:[graphk]'
    15011505    drw.check_arguments(fname,len(expectargs.split(':')),values,':',expectargs)
    15021506
Note: See TracChangeset for help on using the changeset viewer.