Histogram¶
- cosmoglobe.plot.histogram.hist(input, *args, dataset=None, prior=None, xlabel=None, ylabel=None, field=0, darkmode=False, figsize=None, sub=None, hold=False, reuse_axes=False, **kwargs)[source]¶
This function is a wrapper on the existing matplotlib histogram with custom styling. Possible to plot accompanying normalized prior distribution
- Parameters
input (array) – data input array
prior (touple, optional) – mean and stddev of gaussian distribution overlay default: None
dataset (str, optional) – dataset to plot if passing hdf5 file default: None
xlabel (str, optional) – label x axis default: None
ylabel (str, optional) – label y axis default: None
field (int, optional) – which field to plot if .fits file is passed default: 0
darkmode (bool, optional) – turn all axis elements white for optimal dark visualization default: False
figsize (touple, optional) – size of figure default: None
sub (int, scalar or sequence, optional) – Use only a zone of the current figure (same syntax as subplot). Default: None
hold (bool, optional) – If True, replace the current Axes by a MollweideAxes. use this if you want to have multiple maps on the same figure. Default: False
reuse_axes (bool, optional) – If True, reuse the current Axes (should be a MollweideAxes). This is useful if you want to overplot with a partially transparent colormap, such as for plotting a line integral convolution. Default: False