emperor.Emperor.set_background_color

Emperor.set_background_color(color='black')

Changes the background color of the plot

Parameters:

color: str, optional

The background color. Color name or value in the CSS format. Defaults to black.

Returns:

emperor.Emperor

Emperor object with updated settings.

Raises:

TypeError

If the color is not a string.

See also

emperor.core.Emperor.color_by, emperor.core.Emperor.scale_by, emperor.core.Emperor.scale_by, emperor.core.Emperor.shape_by, emperor.core.Emperor.set_axes

Notes

This method is tightly coupled to set_axes.