[yt-users] width of projection

John Wise jwise at physics.gatech.edu
Tue Feb 21 09:28:26 PST 2012


Hi Elizabeth,

You can give add_projection a data object to plot, for instance a 
region.  You'd do something like

reg = pf.h.region(center, center-0.5*width, center+0.5*width)
pc.add_projection('Density', 0, data_source=reg)
pc.set_width(width, 'unitary')

John

On 02/21/2012 12:24 PM, Elizabeth Tasker wrote:
> Hi,
>
> Is there a way to control how deep the projection is with
> add_projection? I'd like to project along only 1kpc of my disk, if
> that were possible?
>
> Elizabeth
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-- 
John Wise
Assistant Professor of Physics
Center for Relativistic Astrophysics, Georgia Tech



More information about the yt-users mailing list