yt.visualization.volume_rendering.transfer_functions.ProjectionTransferFunction

class yt.visualization.volume_rendering.transfer_functions.ProjectionTransferFunction(x_bounds=(-1e+60, 1e+60), n_fields=1)[source]

A transfer function that defines a simple projection.

To generate an interpolated, off-axis projection through a dataset, this transfer function should be used. It will create a very simple table that merely sums along each ray. Note that the end product will need to be scaled by the total width through which the rays were cast, a piece of information inacessible to the transfer function.

Parameters:

x_bounds : tuple of floats, optional

If any of your values lie outside this range, they will be truncated.

n_fields : int, optional

How many fields we’re going to project and pass through

Notes

When you use this transfer function, you may need to explicitly disable logging of fields.

Methods