Changeset 1190 in lmdz_wrf for trunk/tools/drawing_tools.py
- Timestamp:
- Oct 17, 2016, 4:45:30 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r1189 r1190 1 -*- coding: iso-8859-15 -*-1 # -*- coding: iso-8859-15 -*- 2 2 #import pylab as plt 3 3 # From http://stackoverflow.com/questions/13336823/matplotlib-python-error … … 2731 2731 rangegrph = np.zeros((2), dtype=np.float) 2732 2732 # Changing limits of the colors 2733 if vrng[0][0:1] == 'S':2733 if type(vrng[0]) == type('S') and vrng[0][0:1] == 'S': 2734 2734 if vrng[0] == 'Srange': 2735 2735 rangegrph[0] = np.min(varsV) … … 4204 4204 parallels = pretty_int(nlat,xlat,yaxv[2]) 4205 4205 m.drawparallels(parallels,labels=[False,True,True,False]) 4206 4207 print fname + '; Lluis nlat:', nlat, 'xlat:', xlat, 'Ny-axis:',yaxv[2] 4208 print fname + '; Lluis meridians:', meridians, 'parallels:', parallels 4206 4209 4207 4210 plt.xlabel('W-E')
Note: See TracChangeset
for help on using the changeset viewer.