[yt-users] width of projection

Elizabeth Tasker tasker at astro1.sci.hokudai.ac.jp
Tue Feb 21 11:23:24 PST 2012


Projecting an object is actually perfect. I can control its exact size - thanks!

Elizabeth

On 21 February 2012 13:23, Matthew Turk <matthewturk at 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 at 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 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
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> _______________________________________________
> 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