Changeset 2748 in lmdz_wrf


Ignore:
Timestamp:
Nov 8, 2019, 3:47:39 PM (6 years ago)
Author:
lfita
Message:

Centering the labels in `drawpolygon_map'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2747 r2748  
    1452914529        if polylabv[3] == 'normal':
    1453014530            plt.annotate(polylabv[0], xy=(xlabp,ylabp), xycoords='data',             \
    14531               color=polylabv[1], fontsize=polylabv[2], rotation=polylabv[4])
     14531              color=polylabv[1], fontsize=polylabv[2], rotation=polylabv[4],         \
     14532              ha='center')
    1453214533        else:
    1453314534            plt.annotate(polylabv[0], xy=(xlabp,ylabp), xycoords='data',             \
    1453414535              color=polylabv[1], fontsize=polylabv[2], weight=polylabv[3],           \
    14535               rotation=polylabv[4])
     14536              rotation=polylabv[4], ha='center')
    1453614537 
    1453714538    return
Note: See TracChangeset for help on using the changeset viewer.