Changeset 960 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 27, 2016, 12:06:31 PM (8 years ago)
Author:
lfita
Message:

Tinny corrections on the use of `pretty_int'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r955 r960  
    19151915# new
    19161916    potinterval = np.log10(intvalue)
    1917     Ipotint = int(potinterval)
    1918 
    1919 #    print 'interval:', interval, 'intavlue:', intvalue, 'potinterval:', potinterval, \
     1917    Ipotint = np.floor(potinterval)
     1918
     1919#    print fname + '; Lluis: interval:', interval, 'intavlue:', intvalue, 'potinterval:', potinterval, \
    19201920#     'Ipotint:', Ipotint, 'intvalue:', intvalue
    19211921
     
    19311931    values = []
    19321932    val = closestint*(Ibeg)*10.**(Ipotint)
    1933 
    1934 #    print 'closestint:',closestint,'Ibeg:',Ibeg,'val:',val
     1933    dval = closestint*10.**(Ipotint)
     1934
     1935#    print 'closestint:',closestint,'Ibeg:',Ibeg,'val:',val,'dval:',dval
    19351936
    19361937    while val < maxv:
    19371938        values.append(val)
    1938         val = val + closestint*10.**Ipotint
     1939        val = val + dval
    19391940
    19401941    return np.array(values, dtype=np.float)
     
    45684569# contour
    45694570##
    4570     print fname + '; Lluis: shapes x:', x.shape,'y:',y.shape,'varcv:',varcv.shape
    45714571    contkind = ckind.split(',')[0]
    45724572    if contkind == 'cmap':
Note: See TracChangeset for help on using the changeset viewer.