Beispiel #1
0
 def plot(self, mode='element', transformation='real'):
     """
     Plot the grid function.
     
     Attributes
     ----------
     mode : string
         One of 'element' or 'node'. If 'element' is chosen
         the color is determined by the mid-point of the faces
         of the grid. For 'vertices' the vertex values are
         chosen (default: 'element')
     transformation : string or object
         One of 'real', 'imag', 'abs', 'log_abs' or
         'abs_squared' or a callable object. 
         Describes the data transformation
         before plotting. For functions with vector values
         only 'abs', 'log_abs' or 'abs_squared' are allowed.
         If a callable object is given this is applied instead.
         It is important that the callable returns numpy arrays
         with the same number of dimensions as before.
     
     """
     import bempp.api
     from bempp.api.external.viewers import visualize
     visualize(self, mode, transformation)
Beispiel #2
0
    def plot(self):
        """Plot the grid."""
        from bempp.api.external.viewers import visualize

        visualize(self)