def __init__(self, xaxis, yaxis, values):
        '''
        The values has to be a float matrix implementing the method get_item(i, j).
        @params xaxis: list of float values.
        @params yaxis: list of float values.
        @params values: some object implementing a get_item(i, j) method or nested list.
        '''
        self.xaxis = xaxis
        self.yaxis = yaxis
        if hasattr(values, 'get_item'):
            self.values = values.get_item
        else:
            self.values = (lambda x, y: values[x][y])
        self.nx = len(self.xaxis)
        self.ny = len(self.yaxis)
        self.x0 = xaxis[0]
        self.y0 = yaxis[0]
def __init__ ( self , xaxis , yaxis , values ) : self . xaxis = xaxis self . yaxis = yaxis if hasattr ( values , 'get_item' ) : self . values = values . get_item else : self . values = ( lambda x , y : values [ x ] [ y ] ) self . nx = len ( self . xaxis ) self . ny = len ( self . yaxis ) self . x0 = xaxis [ 0 ] self . y0 = yaxis [ 0 ]
The values has to be a float matrix implementing the method get_item(i, j).
        @params xaxis: list of float values.
        @params yaxis: list of float values.
        @params values: some object implementing a get_item(i, j) method or nested list.