yt.raven.Callbacks.ParticleCallback

class yt.raven.Callbacks.ParticleCallback(width, p_size=1.0, col='k', marker='o', stride=1.0, ptype=None, stars_only=False, dm_only=False, minimum_mass=None)

Adds particle positions, based on a thick slab along axis with a width along the line of sight. p_size controls the number of pixels per particle, and col governs the color. ptype will restrict plotted particles to only those that are of a given type. minimum_mass will require that the particles be of a given mass, calculated via ParticleMassMsun, to be plotted.

Attributes

region

Methods

convert_to_pixels(plot, coord[, offset])

Previous topic

yt.raven.Callbacks.MarkerAnnotateCallback.convert_to_pixels

This Page