set_color_theme

ssapy.plotUtils.set_color_theme(fig, *axes, theme)[source][source]

Set the color theme of the figure and axes to white or black and the text color to white or black.

Parameters: - fig (matplotlib.figure.Figure): The figure to modify. - axes (list of matplotlib.axes._subplots.AxesSubplot): One or more axes to modify. - theme (str) either black/dark or white.

Returns: - fig (matplotlib.figure.Figure): The modified figure. - axes (tuple of matplotlib.axes._subplots.AxesSubplot): The modified axes.

This function changes the background color of the given figure and its axes to black or white. It also sets the color of all text items (title, labels, tick labels) to white or black.

Example usage: ``` import matplotlib.pyplot as plt

fig, ax = plt.subplots() ax.plot([1, 2, 3], [4, 5, 6]) set_color_theme(fig, ax, theme=’black’) plt.show() ```