fiesta.disperse.Filament.plot_density_profile#
- Filament.plot_density_profile(avg, length_unit=Unit('cm'), ndensity_unit=Unit('1 / cm3'), scatter=True, contours=None, save=None, **kwargs)[source]#
Plot mass-weighted 2d histogram projection of the AREPO Voronoi grid along an axis.
- Parameters:
avg (
ArepoVoronoiGrid
) – SourceArepoVoronoiGrid
to use for plotting the profilelength_unit (
Unit
, optional) – The unit of length to use. IfNone
(default), takes the valueu.pix
ifscale='pixel'
, elseu.cm
ifscale='physical'
.ndensity_unit (
Unit
, optional) – The unit of number density to use. Default value isu.cm**-3
.scatter (
bool
, optional) – IfTrue
(default), plots the scatter of radius versus density for each cell. Its color can be controlled throughcolor
argument in**kwargs
.contours (
int
, optional) – Number of contours, estimated throughscipy.stats.gaussian_kde
, of the scatter. IfNone
(default), no contour plot is made. Its color can be controlled throughcmap
argument in**kwargs
.save (str, optional) – The name of the file to save the plot as. If
None
(default), plot is not saved.**kwargs (dict, optional) – Additional matplotlib-based keyword arguments to control finer details of the plot.
- Returns: