fiesta.arepo.ArepoVoronoiGrid.plot_projection#
- ArepoVoronoiGrid.plot_projection(projection='z', length_unit=Unit('cm'), log=False, bins=1000, bounds=None, filaments=None, sinks=None, cmap='magma', save=None, **kwargs)[source]#
Plot mass-weighted 2d histogram of the snapshot projected along an axis.
- Parameters:
projection (
str, optional) – Axis of projectionx,yorz(default).length_unit (
Unit, optional) – The unit of length to use. Default value isu.cm.log (
bool, optional) – IfTrue, histogram is normalized on a logarithmic scale. IfFalse(default), histogram is normalized on a linear scale.bins (
int, optional) – Number of bins of the 2D histogram. Seehist2ddocumentation for more detail. Default value is1000.bounds (
Quantity, optional) – Bounds to restrict the area of the projection to bin, in the format[xmin, xmax, ymin, ymax]. If not aQuantityobject, the array is assumed to be inlength_unit.filaments (
listofFilament’s, optional) – 1D array ofFilamentobjects to plot with the projection.sinks (
listoflist’s, optional) – List of sink positions to plot.cmap (
strorColormap, optional) – Colormap of the histogram. Default value is'magma'.save (
str, optional) – File path to save the plot. IfNone(default), plot is not saved.**kwargs (
dict, optional) – Additional matplotlib-based keyword arguments to control finer details of the plot.
- Returns: