arviz_plots.backend.get_default_aes

Contents

arviz_plots.backend.get_default_aes#

arviz_plots.backend.get_default_aes(aes_key, n, kwargs=None)[source]#

Generate n default values for a given aesthetics keyword.

Parameters:
aes_keystr

The key for which default values should be generated. Note aesthetics can be arbitrary keyword arguments, but whenever possible you should use common interface arguments to take advantage of all the available features and defaults. For example, color will get a default cycle assigned automatically whereas fill_color won’t.

nint

Number of values to generate.

kwargsmapping of {strarray_like}, optional

Mapping with aesthetic keywords as keys and its correponding values as values. If aes_key is present, the provided values will be used, repeating them with numpy.tile if necessary.

Returns:
ndarray of shape (n,)

The requested n default values for aes_key. They might not be unique.

See also

arviz_plots.backend.bokeh.get_default_aes
arviz_plots.backend.matplotlib.get_default_aes
arviz_plots.backend.plotly.get_default_aes