Changeset 441
- Timestamp:
- Dec 1, 2011, 2:31:04 PM (13 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r440 r441 1039 1039 # which can be usefull 1040 1040 1041 def call_contour(what_I_plot,error, lon,lat,vert,time,vertmode,ze_var2,indextime,indexlon,indexlat,indexvert,yintegral,mapmode,typefile,var2,ticks):1041 def call_contour(what_I_plot,error,x,y,m,lon,lat,vert,time,vertmode,ze_var2,indextime,indexlon,indexlat,indexvert,yintegral,mapmode,typefile,var2,ticks): 1042 1042 from matplotlib.pyplot import contour, plot 1043 1043 import numpy as np … … 1058 1058 if len(what_I_plot.shape) is 2: 1059 1059 #zelevels=[0.2,0.4,0.6,0.8,1.] 1060 cs = contour(x,y,what_I_plot, zelevels, colors='k', linewidths = 1 ) #0.33 colors='w' )# , alpha=0.5) 1060 if mapmode == 0:cs = contour(x,y,what_I_plot, zelevels, colors='k', linewidths = 1 ) #0.33 colors='w' )# , alpha=0.5) 1061 elif mapmode == 1:cs = m.contour(x,y,what_I_plot, zelevels, colors='k', linewidths = 1 ) #0.33 colors='w' )# , alpha=0.5) 1061 1062 #clabel(cs,zelevels,inline=3,fmt='%1.1f',fontsize=7) 1062 1063 ### If we plot a 1-D field -
trunk/UTIL/PYTHON/planetoplot.py
r440 r441 281 281 if var2: 282 282 what_I_plot_contour, error = reducefield(all_var2[index_f], d4=indextime, d1=indexlon, d2=indexlat , d3=indexvert, yint=yintegral, alt=vert) 283 call_contour(what_I_plot_contour,error, lon,lat,vert,time,vertmode,all_var2[index_f],indextime,indexlon,indexlat,indexvert,yintegral,mapmode,typefile, var2, ticks)283 call_contour(what_I_plot_contour,error,x,y,m,lon,lat,vert,time,vertmode,all_var2[index_f],indextime,indexlon,indexlat,indexvert,yintegral,mapmode,typefile, var2, ticks) 284 284 285 285 #### Shaded plot … … 341 341 # Renew contours for movie frames which are not the first one 342 342 if var2: 343 call_contour(what_I_plot_contour[imov,:,:],error, lon,lat,vert,time,vertmode,all_var2[index_f],imov,indexlon,indexlat,indexvert,yintegral,mapmode,typefile, var2, ticks)343 call_contour(what_I_plot_contour[imov,:,:],error,x,y,m,lon,lat,vert,time,vertmode,all_var2[index_f],imov,indexlon,indexlat,indexvert,yintegral,mapmode,typefile, var2, ticks) 344 344 if not tile: 345 345 #zelevels = np.linspace(zevmin*(1. + 1.e-7),zevmax*(1. - 1.e-7)) #,num=20)
Note: See TracChangeset
for help on using the changeset viewer.