def __init__( self, **kwargs):
”'
SCAN( name = "someName" | "1", NoDelete = TrueOrFalse)
- "SomeName" exists beforehand
- comment, xlabel, ylabel: optional
- date = True to create a date-and-time string at the top
- NoDelete controlls whether the destructor deletes the GQE
SCAN( name = "someName", start = 0, stop - 10, np = 101, at = "(1,1,1)", NoDelete = TrueOrFalse)
- creates a new GQE using start, stop, np and at
- comment, xlabel, ylabel: optional
- date = True to create a date-and-time string at the top
- NoDelete controlls whether the destructor deletes the GQE
”'
def getCurrent( self):
”'
get the current index of a SCAN, starts at 0
”'
def setCurrent( self, index):
”'
set the current index of a SCAN, starts at 0
”'
def readFile( self, fileName):
”'
reads a fio file with 2 columns (for testing purposes)
”'
def attributeDouble( self, attrName):
”'
returns the value of a double attribute
”'
def getX( self, index):
”'
return the x-value, index starts at 0
”'
def getY( self, index):
”'
return the y-value, index starts at 0
”'
def setX( self, index, value):
”'
set an x-value, index starts at 0
”'
def setY( self, index, value):
”'
set an y-value, index starts at 0
”'
def display( self):
”'
clears the screen and displays one GQE only
”'
gra_command( "cls/graphic;display/single %s" % (self.name))
def autoscale( self):
”'
adjusts the window limits
”'
gra_command( "autoscale %s" % (self.name))
def next( self):
”'
return the 'next' SCAN
”'
def back( self):
”'
return the 'previous' SCAN
”'