yt.extensions.volume_rendering.ColorTransferFunction.plot

ColorTransferFunction.plot(filename)

Save an image file of the transfer function.

This function loads up matplotlib, plots all of the constituent transfer functions and saves.

Parameters :

filename : string

The file to save out the plot as.

Examples

>>> tf = ColorTransferFunction( (-10.0, -5.0) )
>>> tf.add_layers(8)
>>> tf.plot("sample.png")

Previous topic

yt.extensions.volume_rendering.ColorTransferFunction.link_channels

Next topic

yt.extensions.volume_rendering.ColorTransferFunction.sample_colormap

This Page