Changeset 874
- Timestamp:
- Feb 11, 2013, 9:04:23 AM (12 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r871 r874 1138 1138 "W": "jet",\ 1139 1139 "WMAX_TH": "spectral",\ 1140 "ANOMALY": "RdBu_r",\ 1140 "ANOMALY": "gist_ncar",\ 1141 #"ANOMALY": "RdBu_r",\ 1141 1142 "QSURFICE": "hot_r",\ 1142 1143 "ALBBARE": "spectral",\ -
trunk/UTIL/PYTHON/planetoplot.py
r871 r874 757 757 elif mult != 1: daformat = "%.1f" 758 758 else: daformat = fmtvar(fvar.upper()) 759 #if proj in ['moll','cyl']: zeorientation="horizontal" ; zepad = 0.05 760 if proj in ['moll']: zeorientation="horizontal" ; zepad = 0.05 761 else: zeorientation="vertical" ; zepad = 0.03 762 zecb = colorbar( fraction=0.05,pad=zepad,format=daformat,orientation=zeorientation,\ 759 if proj in ['moll']: zeorientation="horizontal" ; zepad = 0.07 ; zefrac = 0.1 #zepad=0.05 760 elif proj in ['cyl']: zeorientation="vertical" ; zepad = 0.03 ; zefrac = 0.023 761 else: zeorientation="vertical" ; zepad = 0.03 ; zefrac = 0.05 762 if mapmode == 0: zefrac = 0.1 763 zecb = colorbar( fraction=zefrac,pad=zepad,format=daformat,orientation=zeorientation,\ 763 764 ticks=np.linspace(zevmin,zevmax,num=min([ticks/2+1,21])),extend='neither',spacing='proportional' ) 765 #if zeorientation == "horizontal": 766 # daticks = zecb.ax.get_xticks() 767 # zecb.ax.set_xticklabels(daticks,rotation='vertical') 764 768 if zeorientation == "horizontal" and zetitle[0] != "fill": zecb.ax.set_xlabel(zetitle[index_f]) ; zetitle[index_f]="" 765 769 if winds: … … 807 811 if var2 == 'HGT': zelevels = np.arange(-10000.,30000.,250.) #1000.) 808 812 elif var2 == 'tpot': zelevels = np.arange(270,370,5) 809 elif var2 == 'tk': zelevels = np.arange(150,250,5)813 elif var2 in ['tk','temp']: zelevels = np.arange(0.,1000.,5.)#(150,250,5) 810 814 elif var2 == 'wstar': zelevels = np.arange(0,10,1.0) 811 815 elif var2 == 'zmax_th': zelevels = np.arange(0,10,2.0) ; what_I_plot_frame = what_I_plot_frame / 1000. … … 816 820 ## is this needed? only if len(all_var2[index_f].shape) != len(all_var[index_f].shape) 817 821 cs = contour( x,y,what_I_plot_frame, zelevels, colors='k', linewidths = 0.33)#, alpha=0.5, linestyles='solid') 818 # cs = contour( x,y,what_I_plot_frame, zelevels, colors='w', linewidths = 0.5)#, alpha=0.5, linestyles='solid')819 clabel(cs, inline=1, fontsize = 4.*rcParams['font.size']/5., fmt=fmtvar(var2.upper()))822 ##cs = contour( x,y,what_I_plot_frame, zelevels, colors='w', linewidths = 0.5)#, alpha=0.5, linestyles='solid') 823 #clabel(cs, inline=1, fontsize = 4.*rcParams['font.size']/5., fmt=fmtvar(var2.upper())) 820 824 elif mapmode == 1: 821 825 cs = m.contour( x,y,what_I_plot_frame, zelevels, colors='k', linewidths = 0.33)#, alpha=0.5, linestyles='solid')
Note: See TracChangeset
for help on using the changeset viewer.