Changeset 473 in lmdz_wrf for trunk/tools/drawing_tools.py
- Timestamp:
- Jun 10, 2015, 12:28:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r454 r473 4975 4975 N7lines = 0 4976 4976 4977 xmin = 100000. 4978 xmax = -100000. 4979 ymin = 100000. 4980 ymax = -100000. 4981 for il in range(Ntraj): 4982 minv = np.min(varvv[il]) 4983 maxv = np.max(varvv[il]) 4984 mind = np.min(vardv[il]) 4985 maxd = np.max(vardv[il]) 4986 4987 if minv < xmin: xmin = minv 4988 if maxv > xmax: xmax = maxv 4989 if mind < ymin: ymin = mind 4990 if maxd > ymax: ymax = maxd 4991 4977 4992 plt.rc('text', usetex=True) 4978 4993 … … 4984 4999 plt.xlabel(vtit + ' (' + vunit + ')') 4985 5000 plt.ylabel(dtit) 4986 plt.xlim( np.min(varvv[:]),np.max(varvv[:]))4987 plt.ylim( np.min(vardv[:]),np.max(vardv[:]))5001 plt.xlim(minv,maxv) 5002 plt.ylim(mind,maxd) 4988 5003 4989 5004 else: … … 4994 5009 plt.xlabel(dtit) 4995 5010 plt.ylabel(vtit + ' (' + vunit + ')') 4996 plt.xlim(np.min(vardv[:]),np.max(vardv[:])) 4997 plt.ylim(np.min(varvv[:]),np.max(varvv[:])) 5011 5012 plt.xlim(mind,maxd) 5013 plt.ylim(minv,maxv) 4998 5014 4999 5015 figname = 'lines'
Note: See TracChangeset
for help on using the changeset viewer.