numeraire_graphics.scale_fill_numeraire#

numeraire_graphics.scale_fill_numeraire(palette: str = 'okabe_ito', greyscale: bool = False, diverging: bool = False) Any[source]#

The fill counterpart of scale_color_numeraire(), discrete or diverging.

With diverging=False (the default) this is the discrete Okabe-Ito fill scale for a categorical fill aesthetic — the bars of plot_metric_by() and any other grouped fill. greyscale=True collapses it to ordered greys for a monochrome print, matching scale_color_numeraire().

With diverging=True it is a continuous two-sided fill centred at zero — the scale the weight heatmap wants, so a long (positive) and a short (negative) weight read as opposite hues with an unsaturated midpoint at zero. The endpoints are colourblind-safe (blue for negative, vermillion for positive); greyscale=True gives a light-to-dark grey ramp through white. palette currently accepts only "okabe_ito".