Changeset 1788 in lmdz_wrf


Ignore:
Timestamp:
Mar 1, 2018, 11:01:29 PM (7 years ago)
Author:
lfita
Message:

Fixing axis extreme computation for contents of different legnth in `plot_lines_time'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1768 r1788  
    64806480    # Axis ticks
    64816481    # Usually axis > x must be the time one, thus...
    6482     dxn = np.min(vardv)
    6483     dxx = np.max(vardv)
    6484     dyn = np.min(varvv)
    6485     dyx = np.max(varvv)
     6482    # Dealing with different length of income data
     6483    dxn = 1.e20
     6484    dxx = -1.e20
     6485    dyn = 1.e20
     6486    dyx = -1.e20
     6487    il = 0
     6488    for iobj in varvd:
     6489        dxn = np.min([np.min(vardv),dxn])
     6490        dxx = np.max([np.max(vardv),dxx])
     6491        dyn = np.min([np.min(varvv),dyn])
     6492        dyx = np.max([np.max(varvv),dyx])
     6493        print '    ' + linesn0[il], 'shape:', varvv.shape
     6494        il = il + 1
    64866495
    64876496    dimxt0 = tpos
Note: See TracChangeset for help on using the changeset viewer.