NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 68

Show
Ignore:
Timestamp:
01/21/11 14:35:44
Author:
cbc
Message:

Fix windrose legend label upper bound.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sodarplot/trunk/sodarplot/scintec/windrose.py

    r67 r68  
    143143            labels = np.copy(self._info['bins']) 
    144144            labels = ["[%.1f : %0.1f]" %(labels[i], labels[i+1]) \ 
     145                      if label[i+1] != float('inf') 
     146                      else "[%.1f : inf]" % labels[i] 
    145147                      for i in range(len(labels)-1)] 
    146148            return labels