~activity/openobject-server/trunk

« back to all changes in this revision

Viewing changes to bin/pychart/rose_plot.py

  • Committer: Dainius Malachovskis
  • Date: 2009-06-11 21:01:55 UTC
  • mfrom: (1235.2.5 server)
  • Revision ID: dainius.malachovskis@sandas.eu-20090611210155-ql9k1pd0dnr9avr0
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    """Plots sector diagram which can be superimposed on one another.
26
26
    Sector diagrams are also known as wind roses"""
27
27
    keys = {
28
 
        "start_angle" : (NumType, 90, ""), # top of chart (north)
 
28
        "start_angle" : (NumberType, 90, ""), # top of chart (north)
29
29
        "center" : (CoordType, None, ""),
30
 
        "base_radius" : (NumType, None, ""),
 
30
        "base_radius" : (NumberType, None, ""),
31
31
        "line_style" : (line_style.T, line_style.T(color=color.black, width=0.3), ""),
32
32
        "fill_styles" : (list, fill_style.standards.list()[:],
33
33
                         """The fill style of each item. The length of the
70
70
                if (val < 0) | (val > 1):
71
71
                    raise Exception('Data value ' + str(val) + ' not between 0 and 1!')
72
72
        self.sector_width = 360/nSectors
73
 
        self.type_check()
 
73
        chart_object.T.check_integrity(self)
74
74
 
75
75
    def get_data_range(self, which):
76
76
        return (0, 1)