Changeset 2248 in lmdz_wrf


Ignore:
Timestamp:
Nov 26, 2018, 3:27:27 PM (6 years ago)
Author:
lfita
Message:

Adding to 'graphic_range':

  • `Saroundzero@val': for -xtrm,xtrm where xtrm = np.max(abs(min),abs(max)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2183 r2248  
    28532853      vrng: list of two values: maximum and minimum for the range of the figure
    28542854        'Srange': for full range
     2855        'Saroundzero@val': for -xtrm,xtrm where xtrm = np.max(abs(min),abs(max)
    28552856        'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)
    28562857        'Saroundminmax@val': for min*val,max*val
     
    28712872            rangegrph[0] = np.min(varsV)
    28722873            rangegrph[1] = np.max(varsV)
     2874        elif vrng[0][0:11] == 'Saroundzero':
     2875            minv = np.min(varsV)
     2876            maxv = np.max(varsV)
     2877            minextrm = np.max([np.abs(minv), np.abs(maxv)])
     2878            rangegrph[0] = -minextrm
     2879            rangegrph[1] = minextrm
    28732880        elif vrng[0][0:11] == 'Saroundmean':
    28742881            meanv = np.mean(varsV)
Note: See TracChangeset for help on using the changeset viewer.