[yt-users] transparency and color from two arrays

Matthew Turk matthewturk at gmail.com
Wed Apr 5 08:21:52 PDT 2017


Hi Zbyněk,

Sorry for the delay in replying!

This is possible; it isn't super duper easy right now, though.  What you'll
have to do is manually set up a transfer function using
ColorTransferFunction.  This has the option to set multiple fields, and
multiple alphas; you'll then tie field interpolation tables to different
fields, along with alpha.

It's not ... super duper easy right now.  If you look at how the
PlanckTransferFunction is set up, you can see how this is used to have
temperature specify the color and density the emissivity and alpha.

I wish I had a better answer!

On Mon, Apr 3, 2017 at 9:24 AM, Zbyněk Dostál <zbynek.dostal at ceitec.cz>
wrote:

> Dear YT users,
> I have question about 3D visualization. I have two 3D numpy float arrays
> with the same dimensions. It is possible to visualize so that the first
> array will be data and second array will be their transparency?
>
> Thank you.
> Best regards Zbynek Dostal.
>
> --
> Ing. Zbynek Dostal, Ph.D.
> Experimental Biophotonics
> CEITEC | Brno University of Technology
> Brno, Czech Republic
> zbynek.dostal at ceitec.cz <zbynek.dostal at ceitec.vutbr.cz>
> http://www.biophot.cz
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170405/646ef4ee/attachment.html>


More information about the yt-users mailing list