Changeset 2590 in lmdz_wrf for trunk/tools/drawing_tools.py
- Timestamp:
- Jun 3, 2019, 7:49:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r2589 r2590 3222 3222 3223 3223 def draw_MerPara(mape, mers, pars, ip, Ncol, Nrow, fsize=8, rotmer=0, rotpar=0, \ 3224 col='#080808' ):3224 col='#080808', lwidth=0.25): 3225 3225 """ Function to add the parallels and meridians into a figure with a panel of 3226 3226 plots … … 3235 3235 rotpar: angle of ratation of the labels of the parallels 3236 3236 col: color of lines ('#080808' default) 3237 lwdith: width of the lines (0.25, default) 3237 3238 """ 3238 3239 fname = 'draw_MerPara' … … 3241 3242 if np.mod(ip,Ncol) == 0: 3242 3243 mape.drawparallels(pars,labels=[True,False,False,True], fontsize=fsize, \ 3243 color=col, rotation=rotpar )3244 color=col, rotation=rotpar, linewidth=lwdith) 3244 3245 elif np.mod(ip+1,Ncol) == 0: 3245 3246 mape.drawparallels(pars,labels=[False,True,True,False], fontsize=fsize, \ 3246 color=col, rotation=rotpar )3247 color=col, rotation=rotpar, linewidth=lwdith) 3247 3248 else: 3248 3249 mape.drawparallels(pars,labels=[False,False,False,False], fontsize=fsize, \ 3249 color=col, rotation=rotpar )3250 color=col, rotation=rotpar, linewidth=lwdith) 3250 3251 3251 3252 if ip+1 > (Nrow-1)*Ncol: 3252 3253 mape.drawmeridians(mers, labels=[True,False,False,True], fontsize=fsize, \ 3253 color=col, rotation=rotmer )3254 color=col, rotation=rotmer, linewidth=lwdith) 3254 3255 # NO on top meridians 3255 3256 # elif ip+1 < Ncol: … … 3258 3259 else: 3259 3260 mape.drawmeridians(mers, labels=[False,False,False,False], fontsize=fsize, \ 3260 color=col, rotation=rotmer )3261 color=col, rotation=rotmer, linewidth=lwdith) 3261 3262 3262 3263 return
Note: See TracChangeset
for help on using the changeset viewer.