source: sans/utils/bt5/bt5plot/BT5DataGroup.py @ 723

Last change on this file since 723 was 723, checked in by ajj, 12 years ago

Start of bt5plot "refactor" :)

File size: 1.1 KB
Line 
1import usans
2import math
3
4class BT5DataGroup:
5    '''Class containing a group of BT5 data sets to be treated as one data group'''
6    def __init__(self, dataSetList=None):
7               
8               
9    def addDataSet(self,addList):
10        '''Add data sets to the group. Takes a list of data set objects'''
11        for each dataSet in addList:
12            self.dataSetList.append(dataSet)
13       
14    def removeDataSet(self,dataSetName):
15        '''Remove a data set from the group. Takes a data set name'''
16       
17    def plotDataGroup(self,axes,plottype=None,yerrorbars=True):
18        '''Plot the data group. As with BT5DataSet takes matplotlib axes and some options
19       
20        Pass options to each data set.
21        '''
22   
23    def unplotDataGroup(self):
24        '''Remove the data group from the plot.
25       
26        Calls remove_plot from BT5DataSet
27        '''
28   
29    def calcAlignVals(self,mv):
30        '''Return the values we record in the logbook for a given motor position
31       
32        Determine which data set the motor val belongs to and call function from that class.
33       
34        '''
35       
36   
Note: See TracBrowser for help on using the repository browser.