Changeset 983 in lmdz_wrf
- Timestamp:
- Aug 9, 2016, 11:23:33 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r955 r983 1664 1664 draw_lines(ncfilens, values, varname): 1665 1665 ncfilens= [filen] ',' separated list of netCDF files 1666 values= [dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[locleg]:[graphk] 1666 values= [dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[locleg]:[colns]:[lines] 1667 [points]:[lwdths]:[psizes]:[freqv]:[figname][graphk] 1667 1668 [dimvname]: ',' list of names of the variable with he values of the common dimension 1668 1669 [valuesaxis]: which axis will be used for the values ('x', or 'y') … … 1675 1676 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center', 1676 1677 9: 'upper center', 10: 'center' 1678 [colns]= ',' list of color names ('None' for automatic, single value for all the same) 1679 [lines]= ',' list of style of lines ('None' for automatic, single value for all the same) 1680 [points]= ',' list of style of points ('None' for automatic, single value for all the same) 1681 [lwdths]= ',' list of withs of lines ('None' for automatic, single value for all the same) 1682 [psizes]= ',' list of size of points ('None' for automatic, single value for all the same) 1683 [freqv]= frequency of values 1684 [figname]= name of the figure 1677 1685 [graphk]: kind of the graphic 1678 1686 varname= variable to plot … … 1687 1695 quit() 1688 1696 1689 expectargs = '[dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:[locleg]:[graphk]' 1697 expectargs = '[dimvname]:[valuesaxis]:[dimtit]:[leglabels]:[vtit]:[title]:' + \ 1698 '[locleg]:[colns]:[lines]:[points]:[lwdths]:[psizes]:[freqv]:[graphk]' 1690 1699 drw.check_arguments(fname,values,expectargs,':') 1691 1700 … … 1698 1707 title = values.split(':')[5].replace('|',' ') 1699 1708 locleg = values.split(':')[6] 1700 graphk = values.split(':')[7] 1709 colns = str_list(values.split(':')[7], ',') 1710 lines = str_list(values.split(':')[8], ',') 1711 points = str_list(values.split(':')[9], ',') 1712 lwdths = str_list(values.split(':')[10], ',') 1713 psizes = str_list(values.split(':')[11], ',') 1714 freqv = values.split(':')[12] 1715 figname = values.split(':')[13] 1716 graphk = values.split(':')[14] 1701 1717 1702 1718 Nfiles = len(ncfiles) … … 1773 1789 1774 1790 drw.plot_lines(dimvalues, varvalues, valuesaxis, dimtit, leglabels.split(','), \ 1775 vartit, varunits, title, locleg, graphk) 1791 vartit, varunits, title, locleg, colns, lines, points, lwdths, psizes, freqv, \ 1792 figname,graphk) 1776 1793 1777 1794 return
Note: See TracChangeset
for help on using the changeset viewer.