TransferFunction.
add_gaussian
(location, width, height)[source]¶Add a Gaussian distribution to the transfer function.
Typically, when rendering isocontours, a Guassian distribution is the
easiest way to draw out features. The spread provides a softness.
The values are calculated as .
Parameters: | location : float
width : float
height : float
|
---|
Examples
>>> tf = TransferFunction( (-10.0, -5.0) )
>>> tf.add_gaussian(-9.0, 0.01, 1.0)