Create a plot of a thick slab of particles.
This function will generate a yt.lagos.AMRRegionBase from the given parameters, and all particles which are within that region will be plotted.
Parameters : | axis : int
width : float
p_size : float, optional
col : color, optional
stride : float, optional
data_source : yt.lagos.AMRData, optional
figure : matplotlib.figure.Figure, optional
axes : matplotlib.axes.Axes, optional
|
---|---|
Returns : | plot : yt.raven.ParticlePlot
|
Notes
This plot type can be very expensive, and does not necessarily produce the best visual results. Plotting a large number of particles can be very tricky, and often it’s much better to instead use a slice or a (thin) projection of deposited density, like particle_density_pyx.
Examples
>>> pf = load("RD0005-mine/RedshiftOutput0005")
>>> pc = PlotCollection(pf, [0.5, 0.5, 0.5])
>>> p = pc.add_particles(0, 1.0)