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 projection x, y or z (default).

  • length_unit (Unit, optional) – The unit of length to use. Default value is u.cm.

  • log (bool, optional) – If True, histogram is normalized on a logarithmic scale. If False (default), histogram is normalized on a linear scale.

  • bins (int, optional) – Number of bins of the 2D histogram. See hist2d documentation for more detail. Default value is 1000.

  • bounds (Quantity, optional) – Bounds to restrict the area of the projection to bin, in the format [xmin, xmax, ymin, ymax]. If not a Quantity object, the array is assumed to be in length_unit.

  • filaments (list of Filament’s, optional) – 1D array of Filament objects to plot with the projection.

  • sinks (list of list’s, optional) – List of sink positions to plot.

  • cmap (str or Colormap, optional) – Colormap of the histogram. Default value is 'magma'.

  • save (str, optional) – File path to save the plot. If None (default), plot is not saved.

  • **kwargs (dict, optional) – Additional matplotlib-based keyword arguments to control finer details of the plot.

Returns:

fig (Figure) – Main Figure instance.