yt.visualization.volume_rendering.transfer_functions.ColorTransferFunction.plot

ColorTransferFunction.plot(filename)[source]

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")