[yt-users] small projections

Matthew Turk matthewturk at gmail.com
Tue Jun 1 17:49:29 PDT 2010


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



More information about the yt-users mailing list