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


Ignore:
Timestamp:
Nov 28, 2018, 8:21:21 PM (6 years ago)
Author:
lfita
Message:

New not working way to compute marker size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2255 r2256  
    78637863# flow direction
    78647864
     7865    fig, ax = plt.subplots(1,1)
     7866
     7867    plt.subplot(1,1,1)
     7868    dfig = np.sqrt(fig.get_figwidth()**2 + fig.get_figheight()**2)/fig.get_dpi()
     7869
    78657870    plt.rc('text', usetex=True)
    78667871
     
    80228027# Sea-flow
    80238028    ddist = np.sqrt((xmax-xmin)**2+(ymax-ymin)**2)
    8024     msize = ddist*0.5/lengthtrac
     8029    msize = dfig*ddist*0.5/lengthtrac
    80258030    for i in range(len(xlabpos)):
    80268031        if flowvals[i] == 97:
Note: See TracChangeset for help on using the changeset viewer.