[yt-users] Hop_particles
Agarwal, Shankar
sagarwal at ku.edu
Sat Nov 28 09:59:47 PST 2009
Hi Stephen,
For some reason, I am only getting the hop_circles (and not hop_particles) on the plot. My code is...
from yt.mods import *
fn = "RedshiftOutput0002"
pf = load(fn)
halos = HaloFinder(pf)
halos.write_out("HopAnalysis.out")
pc = PlotCollection(pf)
pc = PlotCollection(pf,center=[0.5,0.5,0.5])
p = pc.add_projection("Density", 0)
p.modify["hop_circles"](halos, max_number=None, annotate=True, min_size=0, max_size=20000, font_size=8, print_halo_size=True, print_halo_mass=False, width=None)
p.modify["hop_particles"](halos, p_size=1.0, max_number=None, min_size=0, alpha=0.20000000000000001)
pc.save()
Can you run this on one of your datasets.
shankar
-----Original Message-----
From: yt-users-bounces at lists.spacepope.org on behalf of Stephen Skory
Sent: Fri 11/27/2009 3:28 PM
To: Discussion of the yt analysis package
Subject: Re: [yt-users] Overplotting particles
Shankar,
> I wanted to know what the simulation volume and the number of particles are for
> the following 2 plots..
I think they are both fairly small, a few Mpc/h and 64^3 or 128^3 particles.
> http://yt.enzotools.org/attachment/wiki/Screenshots/s_projection_z_density.png
> http://yt.enzotools.org/doc/cookbook/recipes.html#overplot-particles
> For the first one, what is the command to plot hop-particles inside the circles
> ? I am using hop_circles, But it only plots circles.
See 'hop_particles', immediately below 'hop_circles' in the documentation:
http://yt.enzotools.org/doc/advanced/callbacks.html
_______________________________________________________
sskory at physics.ucsd.edu o__ Stephen Skory
http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
________________________________(_)_\(_)_______________
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3585 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20091128/0b0a03d1/attachment-0001.bin>
More information about the yt-users
mailing list