yt.visualization.image_writer.
multi_image_composite
(fn, red_channel, blue_channel, green_channel=None, alpha_channel=None)[source]¶Write an image with different color channels corresponding to different quantities.
Accepts at least a red and a blue array, of shape (N,N) each, that are optionally scaled and composited into a final image, written into fn. Can also accept green and alpha.
Parameters: | fn : string
red_channel : array_like or tuple of image info
blue_channel : array_like or tuple of image info
green_channel : array_like or tuple of image info, optional
alpha_channel : array_like or tuple of image info, optional
|
---|
Examples
>>> red_channel = np.log10(frb["Temperature"])
>>> blue_channel = np.log10(frb["Density"])
>>> multi_image_composite("multi_channel1.png", red_channel, blue_channel)