Changeset 516 for trunk/UTIL/PYTHON/planetoplot.py
- Timestamp:
- Feb 4, 2012, 1:16:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r507 r516 342 342 what_I_plot, error = reducefield( all_var[index_f], d4=indextime, d1=indexlon, d2=indexlat, d3=indexvert, \ 343 343 yint=yintegral, alt=vert, anomaly=anomaly, redope=redope ) 344 what_I_plot = what_I_plot*mult 344 if mult != 2718.: what_I_plot = what_I_plot*mult 345 else: what_I_plot = np.log10(what_I_plot) ; print "log plot" 345 346 if var2: ### what is contoured. 346 347 what_I_plot_contour, error = reducefield( all_var2[index_f], d4=indextime, d1=indexlon, d2=indexlat , d3=indexvert, \ … … 446 447 if mrate is not None: x = y ## because swapaxes... 447 448 #what_I_plot_frame = np.diff(what_I_plot_frame, n=1) ; x = x[1:] 448 if indexvert is not None or indextime is None: plot(x,what_I_plot_frame,label=lbl) ## regular plot 449 else: plot(what_I_plot_frame,x,label=lbl) ## vertical profile 449 450 if not tile: zeline='-' 451 else: zeline=',' 452 if indexvert is not None or indextime is None: plot(x,what_I_plot_frame,zeline,label=lbl) ## regular plot 453 else: plot(what_I_plot_frame,x,zeline,label=lbl) ## vertical profile 450 454 if nplot > 1: legend(loc='best') 451 455 if indextime is None and axtime is not None and xlab is None: xlabel(axtime.upper()) ## define the right label … … 469 473 elif mult != 1: daformat = "%.1f" 470 474 else: daformat = fmtvar(fvar.upper()) 471 colorbar( fraction=0.05,pad=0.03,format=daformat,\ 475 if proj in ['moll']: zeorientation="horizontal" 476 else: zeorientation="vertical" 477 zecb = colorbar( fraction=0.05,pad=0.03,format=daformat,orientation=zeorientation,\ 472 478 ticks=np.linspace(zevmin,zevmax,num=min([ticks/2+1,21])),extend='neither',spacing='proportional' ) 479 if zeorientation == "horizontal": 480 zecb.ax.set_xlabel(zetitle) 481 zetitle="" 473 482 if winds: 474 483 if typefile in ['mesoapi','meso']:
Note: See TracChangeset
for help on using the changeset viewer.