- Timestamp:
- May 20, 2015, 2:51:48 PM (10 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r396 r422 2070 2070 values=[leglabels]|[lonlatlims]|[title]|[graphk]|[mapkind] 2071 2071 [leglabels]: ',' separated list of names for the legend 2072 [lonlatlims]: limits of the map [lonmin, latmin, lonmax, latmax] or None2073 [title]: title of the plot 2072 [lonlatlims]: ',' list of limits of the map [lonmin, latmin, lonmax, latmax] or None 2073 [title]: title of the plot ('!' for spaces) 2074 2074 [graphk]: kind of the graphic 2075 2075 [mapkind]: drawing coastaline ([proj],[res]) or None … … 2097 2097 quit() 2098 2098 2099 expectargs = '[leglabels]|[lonlatlims]|[title]|[graphk]|[mapkind]' 2100 2101 drw.check_arguments(fname,len(expectargs.split('|')),values,'|',expectargs) 2102 2099 2103 trjfiles = trjfilens.split(',') 2100 2104 leglabels = values.split('|')[0] 2101 2105 lonlatlims = values.split('|')[1] 2102 title = values.split('|')[2] 2106 title = values.split('|')[2].replace('!',' ') 2103 2107 graphk = values.split('|')[3] 2104 2108 mapkind = values.split('|')[4] -
trunk/tools/drawing_tools.py
r399 r422 2817 2817 lats = olat[:,:] 2818 2818 else: 2819 print errormsg 2820 print ' ' + fname + ': shapes of lon/lat objects', olon.shape, \ 2821 'not ready!!!' 2819 dx = olon.shape 2820 dy = olat.shape 2821 # print errormsg 2822 # print ' ' + fname + ': shapes of lon/lat objects', olon.shape, \ 2823 # 'not ready!!!' 2822 2824 2823 2825 for il in range(Ntraj): … … 2844 2846 dy = olon.shape[0] 2845 2847 else: 2846 print errormsg 2847 print ' ' + fname + ': shapes of lon/lat objects', olon.shape, \ 2848 'not ready!!!' 2848 dx = olon.shape 2849 dy = olat.shape 2850 # print errormsg 2851 # print ' ' + fname + ': shapes of lon/lat objects', olon.shape, \ 2852 # 'not ready!!!' 2849 2853 2850 2854 if lonlatLims is not None:
Note: See TracChangeset
for help on using the changeset viewer.