Changeset 2255 in lmdz_wrf


Ignore:
Timestamp:
Nov 28, 2018, 7:36:44 PM (6 years ago)
Author:
lfita
Message:

Fixing size of markers and typo in `draw_river_pattern'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r2254 r2255  
    1107111071        [barcolordescid, rivercolor, rivernocolor, riverwidth, rivercolortype] =     \
    1107211072          rivervalues.split('|')
    11073         riverwidth = np.float(riverwdith)
     11073        riverwidth = np.float(riverwidth)
    1107411074
    1107511075    if stationvalues == 'None':
  • trunk/tools/drawing_tools.py

    r2252 r2255  
    80218021
    80228022# Sea-flow
     8023    ddist = np.sqrt((xmax-xmin)**2+(ymax-ymin)**2)
     8024    msize = ddist*0.5/lengthtrac
    80238025    for i in range(len(xlabpos)):
    80248026        if flowvals[i] == 97:
    80258027            plt.plot(xlabpos[i], ylabpos[i], 'x', color=colortrack[i],               \
    8026               markersize=lengthtrac2)
     8028              markersize=msize)
    80278029        elif flowvals[i] == 98:
    80288030            plt.plot(xlabpos[i], ylabpos[i], '*', color=colortrack[i],               \
    8029               markersize=lengthtrac2)
     8031              markersize=msize)
    80308032        elif flowvals[i] == 99:
    80318033            plt.plot(xlabpos[i], ylabpos[i], 'h', color=colortrack[i],               \
    8032               markersize=lengthtrac2)
     8034              markersize=msize)
    80338035
    80348036    plt.xlim(xmin,xmax)
Note: See TracChangeset for help on using the changeset viewer.