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

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

Some tidying

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        self.isPlotted = False
9           
10               
11    def addDataSet(self,addList):
12        '''Add data sets to the group. Takes a list of data set objects'''
13        for dataSet in addList:
14            self.dataSetList.append(dataSet)
15       
16    def removeDataSet(self,dataSetName):
17        '''Remove a data set from the group. Takes a data set name'''
18       
19    def plotDataGroup(self,axes,plottype=None,yerrorbars=True):
20        '''Plot the data group. As with BT5DataSet takes matplotlib axes and some options
21       
22        Pass options to each data set.
23        '''
24   
25    def unplotDataGroup(self):
26        '''Remove the data group from the plot.
27       
28        Calls remove_plot from BT5DataSet
29        '''
30   
31    def calcAlignVals(self,mv):
32        '''Return the values we record in the logbook for a given motor position
33       
34        Determine which data set the motor val belongs to and call function from that class.
35       
36        '''
37       
38   
Note: See TracBrowser for help on using the repository browser.