Changeset 560 in lmdz_wrf
- Timestamp:
- Jul 3, 2015, 5:21:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r558 r560 15 15 16 16 fillValue = 1.e20 17 fillValueF = 1.e20 17 18 18 19 ####### Funtions … … 5230 5231 5231 5232 plt.rc('text', usetex=True) 5232 varTvv = []5233 varTdv = []5233 xtrmvv = [fillValueF,-fillValueF] 5234 xtrmdv = [fillValueF,-fillValueF] 5234 5235 5235 5236 if vaxis == 'x': … … 5241 5242 color=coll[il]) 5242 5243 5243 varTvv = varTvv + list(varvv[il]) 5244 varTdv = varTdv + list(vardv[il]) 5244 minvv = np.min(varvv[il]) 5245 maxvv = np.max(varvv[il]) 5246 mindv = np.min(vardv[il]) 5247 maxdv = np.max(vardv[il]) 5248 5249 if minvv < xtrmvv[0]: xtrmvv[0] = minvv 5250 if maxvv > xtrmvv[1]: xtrmvv[1] = maxvv 5251 if mindv < xtrmdv[0]: xtrmdv[0] = mindv 5252 if maxdv > xtrmdv[1]: xtrmdv[1] = maxdv 5253 5245 5254 if il == 6: N7lines = N7lines + 1 5246 5255 5247 5256 plt.xlabel(vtit + ' (' + vunit + ')') 5248 5257 plt.ylabel(dtit) 5249 plt.xlim(np.min(varTvv),np.max(varTvv)) 5250 plt.ylim(np.min(varTdv),np.max(varTdv)) 5258 # plt.xlim(np.min(varTvv),np.max(varTvv)) 5259 # plt.ylim(np.min(varTdv),np.max(varTdv)) 5260 plt.xlim(xtrmvv[0],xtrmvv[1]) 5261 plt.ylim(xtrmdv[0],xtrmdv[1]) 5262 5251 5263 plt.yticks(tpos, tlabs) 5252 5264 else: … … 5258 5270 color=coll[il]) 5259 5271 5260 varTvv = varTvv + list(varvv[il]) 5261 varTdv = varTdv + list(vardv[il]) 5272 minvv = np.min(varvv[il]) 5273 maxvv = np.max(varvv[il]) 5274 mindv = np.min(vardv[il]) 5275 maxdv = np.max(vardv[il]) 5276 5277 if minvv < xtrmvv[0]: xtrmvv[0] = minvv 5278 if maxvv > xtrmvv[1]: xtrmvv[1] = maxvv 5279 if mindv < xtrmdv[0]: xtrmdv[0] = mindv 5280 if maxdv > xtrmdv[1]: xtrmdv[1] = maxdv 5281 5262 5282 if il == 6: N7lines = N7lines + 1 5263 5283 … … 5265 5285 plt.ylabel(vtit + ' (' + vunit + ')') 5266 5286 5267 plt.xlim(np.min(varTdv),np.max(varTdv)) 5268 plt.ylim(np.min(varTvv),np.max(varTvv)) 5287 plt.xlim(xtrmdv[0],xtrmdv[1]) 5288 plt.ylim(xtrmvv[0],xtrmvv[1]) 5289 5290 # plt.xlim(np.min(varTdv),np.max(varTdv)) 5291 # plt.ylim(np.min(varTvv),np.max(varTvv)) 5269 5292 plt.xticks(tpos, tlabs) 5270 5293 … … 5274 5297 plt.title(graphtit) 5275 5298 plt.legend(loc=gloc) 5299 5300 print plt.xlim(),':', plt.ylim() 5276 5301 5277 5302 output_kind(kfig, figname, True)
Note: See TracChangeset
for help on using the changeset viewer.