Changeset 2716 in lmdz_wrf for trunk


Ignore:
Timestamp:
Oct 1, 2019, 5:02:56 AM (5 years ago)
Author:
lfita
Message:

Fixing None lab case for `drawpolygon_map'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2714 r2716  
    1435314353        pptii, pptjj = mape(ipti[0:Nint], iptj[0:Nint])
    1435414354        for ij in range(Nint-1):
    14355             if iv == 0 and ij == 0:
     14355            if iv == 0 and ij == 0 and polylabv is not None:
    1435614356                plt.plot([pptii[ij],pptii[ij+1]],[pptjj[ij],pptjj[ij+1]], linev[2],  \
    1435714357                  color=linev[0], linewidth=linev[1], label=polylabv[0])
     
    1437914379
    1438014380    # Label location
    14381     polylab = polylabv[0]
    14382     if polylab is not None:
     14381    if polylabv is not None:
    1438314382        polylabpos = polylabv[5].split(',')
    1438414383        if polylabpos[0] == 'c':
Note: See TracChangeset for help on using the changeset viewer.