[yt-users] small projections

Charles Hansen chansen at astro.berkeley.edu
Tue Jun 1 18:11:50 PDT 2010


Thanks Matt, that works.

Matthew Turk wrote:
> Hi Charles,
>
>   
>> Ideally, I'd like to be able to do something like
>>
>> pf = load(file)
>> sp = pf.h.sphere(center, radius)
>> pc = PlotCollection(pf)
>> p = pc.add_projection(field, object=sp)
>>     
>
> Instead of "object=sp", try "source=sp".  That should do what you're
> looking for.
>
>   
>> I could probably put something together using the volume renderer if there
>> aren't other options, but that doesn't sound very fast either.
>>     
>
> Results from the volume render will vary depending on the amount of
> work you ask it to do, but you can also spin it in arbitrary
> directions, which is nice.
>
> -Matt
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>   




More information about the yt-users mailing list