[yt-dev] Making a particle density plot

Christopher Moody cemoody at ucsc.edu
Sat Dec 1 11:57:58 PST 2012


Hi everyone,

I'd like to implement a particle density plot type, but I'm not familiar
enough with the yt/visualization classes. I'm explicitly avoiding particle
deposition on the grid (ie, the stuff John ZuHone just PR'd), because even
after the particles are assigned to grids, splitting the array for each
grid, and then concatenating grid-by-grid is slow. And moving to yt-3.0, we
should be able to handle particle as particles not on a grid/oct (right?).

To collect all of the particles, project them, and do a 2D histogram is
straightforward, but my question is where to do it. I was thinking of
imitating the ParticlePlot class, but that basically uses the particle
callback that draws a dot for every particle. A histogram'd field is
defined everywhere, and is probably not appropriate as a callback.

How should I structure this? Which files are the relevant ones?

chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20121201/50232020/attachment.htm>


More information about the yt-dev mailing list