Changeset 2590 in lmdz_wrf for trunk/tools/drawing_tools.py


Ignore:
Timestamp:
Jun 3, 2019, 7:49:22 PM (5 years ago)
Author:
lfita
Message:

Adding linewidth into `draw_MerPara'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2589 r2590  
    32223222
    32233223def draw_MerPara(mape, mers, pars, ip, Ncol, Nrow, fsize=8, rotmer=0, rotpar=0,      \
    3224   col='#080808'):
     3224  col='#080808', lwidth=0.25):
    32253225    """ Function to add the parallels and meridians into a figure with a panel of
    32263226       plots
     
    32353235     rotpar: angle of ratation of the labels of the parallels
    32363236     col: color of lines ('#080808' default)
     3237     lwdith: width of the lines (0.25, default)
    32373238    """
    32383239    fname = 'draw_MerPara'
     
    32413242    if np.mod(ip,Ncol) == 0:
    32423243        mape.drawparallels(pars,labels=[True,False,False,True], fontsize=fsize,      \
    3243           color=col, rotation=rotpar)
     3244          color=col, rotation=rotpar, linewidth=lwdith)
    32443245    elif np.mod(ip+1,Ncol) == 0:
    32453246        mape.drawparallels(pars,labels=[False,True,True,False], fontsize=fsize,      \
    3246           color=col, rotation=rotpar)
     3247          color=col, rotation=rotpar, linewidth=lwdith)
    32473248    else:
    32483249        mape.drawparallels(pars,labels=[False,False,False,False], fontsize=fsize,    \
    3249           color=col, rotation=rotpar)
     3250          color=col, rotation=rotpar, linewidth=lwdith)
    32503251
    32513252    if ip+1 > (Nrow-1)*Ncol:
    32523253        mape.drawmeridians(mers, labels=[True,False,False,True], fontsize=fsize,     \
    3253           color=col, rotation=rotmer)
     3254          color=col, rotation=rotmer, linewidth=lwdith)
    32543255# NO on top meridians
    32553256#    elif ip+1 < Ncol:
     
    32583259    else:
    32593260        mape.drawmeridians(mers, labels=[False,False,False,False], fontsize=fsize,   \
    3260           color=col, rotation=rotmer)
     3261          color=col, rotation=rotmer, linewidth=lwdith)
    32613262
    32623263    return
Note: See TracChangeset for help on using the changeset viewer.