Esempio n. 1
0
    def setDataAttr(self):
        '''adds each possible data series as an attribute.'''

        for getNames, getData in [(self.getXDataNames, self.getXData),
                (self.getYDataNames, self.getYData)]:
            for name in getNames():
                setattr(self, munge(name), getData(name))
Esempio n. 2
0
    def setDataAttr(self):
        '''adds each possible data series as an attribute.'''

        for name in getDataNames():
            setattr(self, munge(name), getData(name))