fiesta.arepo.ArepoCubicGrid.plot_grid#

ArepoCubicGrid.plot_grid(length_unit=None, ndensity_unit=Unit('1 / cm3'), log=False, mask_below=None, filaments=None, sinks=None, cmap='magma', save=None, **kwargs)[source]#

Plot the 3D number density grid. Recommended use is with mask_below parameter so that not all grid points are plotted. Can also plot filaments or AREPO sinks together!

Parameters:
  • length_unit (Unit, optional) – The unit of length to use. If None (default), takes the value u.pix if scale='pixel', else u.cm if scale='physical'.

  • ndensity_unit (Unit, optional) – The unit of number density to use. Default value is u.cm**-3.

  • log (bool, optional) – If True, the number density is plotted on a log-scale. If False (default), it is plotted on a linear scale.

  • mask_below (float or Quantity, optional) – The number density below which all grid points are omitted from the plot. This ensures only certain dense regions are plotted. If float, then assumed to be in ndensity_unit units.

  • filaments (list of Filament’s) – List of Filament’s to plot along with the grid. Requires the filaments to have the same scale as the grid.

  • sinks (list of list’s, optional) – List of sink positions to plot. Requires the grid to have scale='physical'.

  • cmap (str or Colormap, optional) – Colormap of the plot. Default 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.