<div dir="ltr">Hi Jeremy,<div><br></div><div>I haven't tested this, but I think the issue is due to unit conversions and possibly some misleading text in the docs. From my reading of the code, I think width is in code units rather than normalized units as the docs seem to indicate.</div>

<div><br></div><div>I'm not sure which simulation code you're using, but if it uses CGS units then the width you're specifying would be 1.0 cm.  The docs page you link to uses an Enzo simulation - in Enzo 1.0 code length units corresponds to the entire domain.</div>

<div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 5, 2014 at 10:47 AM, Jeremy Ritter <span dir="ltr"><<a href="mailto:jritter@astro.as.utexas.edu" target="_blank">jritter@astro.as.utexas.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello YT,<br>
<br>
When using annotate_particles() on a ProjectionPlot, it does not seem to respect the width field. I get a very thin slab when plotting a 2kpc x 2kpc image. The cookbook implies that a width of 1.0 would correspond to the entire 2kpc line-of-sight domain (e.g. <a href="http://yt-project.org/docs/2.6/cookbook/complex_plots.html#plotting-particles-over-fluids" target="_blank">http://yt-project.org/docs/2.6/cookbook/complex_plots.html#plotting-particles-over-fluids</a> ). It is definitately only a thin slab (about 10pc wide) regardless of whether I use width=1.0 or width=2000.0. The slab thickness seems to be the same as in a slice plot. What would be the correct way to plot the entire 2kpc cube of particles in projection?<br>


<br>
Here are some comparison plots from YT (metallicity projection and slice) and VisIt (metallicity slice).<br>
<br>
YT Projection (Width 2kpc):<br>
<a href="http://grapenut.org/code/yt/paper/project/project_particles_175300_Projection_z_Metallicity_Density.png" target="_blank">http://grapenut.org/code/yt/paper/project/project_particles_175300_Projection_z_Metallicity_Density.png</a><br>


<br>
YT Slice:<br>
<a href="http://grapenut.org/code/yt/paper/slice/slice_particles_175300_Slice_z_Metallicity.png" target="_blank">http://grapenut.org/code/yt/paper/slice/slice_particles_175300_Slice_z_Metallicity.png</a><br>
<br>
Visit (10pc slab on 2kpc x 2kpc slice):<br>
<a href="http://grapenut.org/code/yt/paper/particle_slab_0000.png" target="_blank">http://grapenut.org/code/yt/paper/particle_slab_0000.png</a><br>
<br>
YT example source:<br>
plot = ProjectionPlot(pf, 'z', nfield, center=star_center, width=star_width, axes_unit=axunit, weight_field='Density', fontsize=32)<br>
plot.annotate_particles(1.0, ptype=1.0, col='white')<br>
<br>
Cheers,<br>
-Jeremy<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>