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
,y
orz
(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. Seehist2d
documentation 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 aQuantity
object, the array is assumed to be inlength_unit
.filaments (
list
ofFilament
’s, optional) – 1D array ofFilament
objects to plot with the projection.sinks (
list
oflist
’s, optional) – List of sink positions to plot.cmap (
str
orColormap
, 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: