Changeset 204 in lmdz_wrf for trunk/tools/drawing.py
- Timestamp:
- Dec 9, 2014, 5:30:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r203 r204 1578 1578 draw_lines_time(ncfilens, values, varname): 1579 1579 ncfilens= [filen] ',' separated list of netCDF files 1580 values= [dimvname];[valuesaxis];[dimtit];[leglabels];[vtit];[title];[timevals];[ graphk]1580 values= [dimvname];[valuesaxis];[dimtit];[leglabels];[vtit];[title];[timevals];[locleg];[graphk] 1581 1581 [dimvname]: name of the variable with he values of the common dimension 1582 1582 [valuesaxis]: which axis will be used for the values ('x', or 'y') … … 1596 1596 'l': milisecond 1597 1597 [tfmt]; desired format 1598 [locleg]: location of the legend (-1, autmoatic) 1599 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right', 1600 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center', 1601 9: 'upper center', 10: 'center' 1598 1602 [graphk]: kind of the graphic 1599 1603 varname= variable to plot 1600 values= 'time;y;time ([DD]${[HH]}$);32x32;$wss^{*}$;wss Taylor's turbulence term;time|hours!since!1949-12-01_00:00:00;exct,12,h|%d$^{%H}$; pdf'1604 values= 'time;y;time ([DD]${[HH]}$);32x32;$wss^{*}$;wss Taylor's turbulence term;time|hours!since!1949-12-01_00:00:00;exct,12,h|%d$^{%H}$;2;pdf' 1601 1605 """ 1602 1606 … … 1609 1613 1610 1614 expectargs = '[dimvname];[valuesaxis];[dimtit];[leglabels];[vtit];[title];' 1611 expectargs = expectargs + '[timevals];[ graphk]'1615 expectargs = expectargs + '[timevals];[locleg];[graphk]' 1612 1616 drw.check_arguments(fname,len(expectargs.split(';')),values,';',expectargs) 1613 1617 … … 1620 1624 title = values.split(';')[5].replace('|',' ') 1621 1625 timevals = values.split(';')[6] 1622 graphk = values.split(';')[7] 1626 locleg = int(values.split(';')[7]) 1627 graphk = values.split(';')[8] 1623 1628 1624 1629 Nfiles = len(ncfiles) … … 1702 1707 1703 1708 drw.plot_lines_time(dimvalues, varvalues, valuesaxis, dimtit, leglabels.split(','), \ 1704 vartit, varunits, timepos, timelabels, title, graphk)1709 vartit, varunits, timepos, timelabels, title, locleg, graphk) 1705 1710 1706 1711 return
Note: See TracChangeset
for help on using the changeset viewer.