/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/classgen.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/classgen.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1335 by jonathan, Tue Jul 1 16:09:09 2003 UTC revision 1352 by jonathan, Wed Jul 2 09:36:39 2003 UTC
# Line 74  def generate_uniform_distribution(min, m Line 74  def generate_uniform_distribution(min, m
74          else:          else:
75              _range = Range(("[", cur_min, cur_max, end))              _range = Range(("[", cur_min, cur_max, end))
76    
77          clazz.AppendGroup(ClassGroupRange(_range, None, prop))          clazz.AppendGroup(ClassGroupRange(_range, prop))
78    
79          cur_min = cur_max          cur_min = cur_max
80    
# Line 132  def generate_quantiles(_list, percents, Line 132  def generate_quantiles(_list, percents,
132                  else:                  else:
133                      max = _list[q]                      max = _list[q]
134    
135                  group = ClassGroupRange(Range((start, min, max, end)),                  group = ClassGroupRange(Range((start, min, max, end)), prop)
                                         None, prop)  
136            
137                  group.SetLabel("%s%% - %s%%" % (round(oldp*100, 2),                  group.SetLabel("%s%% - %s%%" % (round(oldp*100, 2),
138                                                  round(p*100, 2)))                                                  round(p*100, 2)))
# Line 195  def GenQuantiles0(_list, percents, ramp, Line 194  def GenQuantiles0(_list, percents, ramp,
194                  else:                  else:
195                      max = _list[q]                      max = _list[q]
196    
197                  group = ClassGroupRange(Range((start, min, max, end)),                  group = ClassGroupRange(Range((start, min, max, end)), prop)
                                         None, prop)  
198            
199                  group.SetLabel("%s%% - %s%%" % (round(oldp*100, 2),                  group.SetLabel("%s%% - %s%%" % (round(oldp*100, 2),
200                                                  round(p*100, 2)))                                                  round(p*100, 2)))

Legend:
Removed from v.1335  
changed lines
  Added in v.1352

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26