[yt-users] Column density plot

Suoqing JI suoqing at physics.ucsb.edu
Mon Nov 3 17:29:17 PST 2014


Hi Stephanie,

Maybe you could specify a disk, use BinnedProfile1D to create bins along cylindrical radial ('cylindrical_r'), and do

profile.add_fields(‘cell_mass’, weight=None)

then you could plot profile[‘cell_mass’] vs. profile['cylindrical_r’] and get the 1-D plot the surface density.

Best wishes,
--
Suoqing JI
Ph.D Student
Department of Physics
University of California, Santa Barbara
CA 93106, USA

> On Nov 3, 2014, at 5:17 PM, Stephanie Tonnesen <stonnes at gmail.com> wrote:
> 
> Hi yt-users,
> 
> I would like to make a 1D plot of column density vs radius for a disk (to compare with observations).  I can make a projectionplot, but want something a bit more simple to look at.  I am using yt3.0.1--is there a nice way to to this?
> 
> Thanks!
> 
> Stephanie
> 
> --
> Dr. Stephanie Tonnesen
> Alvin E. Nashman Postdoctoral Fellow
> Carnegie Observatories, Pasadena, CA
> stonnes at gmail.com <mailto:stonnes at gmail.com>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141103/d0212828/attachment.html>


More information about the yt-users mailing list