Changeset 2747 in lmdz_wrf for trunk


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

Right calculation of the coordinates for 'c'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2746 r2747  
    1450014500        polylabpos = polylabv[5].split(',')
    1450114501        if polylabpos[0] == 'c':
    14502             xlabp = np.sum(vertices[:,0])
    14503             ylabp = np.sum(vertices[:,1])
     14502            xlabp = np.mean(vertices[:,0])
     14503            ylabp = np.mean(vertices[:,1])
    1450414504        elif polylabpos[0] == 'vert':
    1450514505            iv = int(polylabpos[1])
     
    1452714527            quit(-1)
    1452814528
    14529         if polylabv[3] == 'normal':       
     14529        if polylabv[3] == 'normal':
    1453014530            plt.annotate(polylabv[0], xy=(xlabp,ylabp), xycoords='data',             \
    1453114531              color=polylabv[1], fontsize=polylabv[2], rotation=polylabv[4])
Note: See TracChangeset for help on using the changeset viewer.