yt.extensions.volume_rendering.plot_channel

yt.extensions.volume_rendering.plot_channel(image, name, cmap='gist_heat', log=True, dex=3, zero_factor=1e-10, label=None, label_color='w', label_size='large')

This function will plot a single channel. image is an array shaped like (N,M), name is the pefix for the output filename. cmap is the name of the colormap to apply, log is whether or not the channel should be logged. Additionally, you may optionally specify the minimum-value cutoff for scaling as dex, which is taken with respect to the minimum value of the image. zero_factor applies a minimum value to all zero-valued elements. Optionally, label, label_color and label_size may be specified.

Previous topic

yt.extensions.volume_rendering.import_rgba

Next topic

yt.extensions.volume_rendering.plot_rgb

This Page