
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

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@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

There's also PlotCollection.add_thin_projection, although there have been reports that it may misbehave around boundaries. -Matt On Tue, Feb 21, 2012 at 12:28 PM, John Wise <jwise@physics.gatech.edu> wrote:
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@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
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Projecting an object is actually perfect. I can control its exact size - thanks! Elizabeth On 21 February 2012 13:23, Matthew Turk <matthewturk@gmail.com> wrote:
There's also PlotCollection.add_thin_projection, although there have been reports that it may misbehave around boundaries.
-Matt
On Tue, Feb 21, 2012 at 12:28 PM, John Wise <jwise@physics.gatech.edu> wrote:
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@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
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Elizabeth Tasker
-
John Wise
-
Matthew Turk