graphinglib.Figure.set_visual_params#

Figure.set_visual_params(reset: bool = False, figure_face_color: str | None = None, axes_face_color: str | None = None, axes_edge_color: str | None = None, axes_label_color: str | None = None, axes_line_width: float | None = None, color_cycle: list[str] | None = None, x_tick_color: str | None = None, y_tick_color: str | None = None, legend_face_color: str | None = None, legend_edge_color: str | None = None, font_family: str | None = None, font_size: float | None = None, font_weight: str | None = None, text_color: str | None = None, use_latex: bool | None = None)[source]#

Customize the visual style of the Figure.

Any parameter that is not specified (None) will be set to the default value for the specified figure_style.

Parameters:
resetbool

Whether or not to reset the rc parameters to the default values for the specified figure_style. Defaults to False.

figure_face_colorstr

The color of the figure face. Defaults to None.

axes_face_colorstr

The color of the axes face. Defaults to None.

axes_edge_colorstr

The color of the axes edge. Defaults to None.

axes_label_colorstr

The color of the axes labels. Defaults to None.

axes_line_widthfloat

The width of the axes lines. Typical range is 0.5 to 3. Defaults to None.

color_cyclelist[str]

A list of colors to use for the color cycle. Defaults to None.

x_tick_colorstr

The color of the x-axis ticks. Defaults to None.

y_tick_colorstr

The color of the y-axis ticks. Defaults to None.

legend_face_colorstr

The color of the legend face. Defaults to None.

legend_edge_colorstr

The color of the legend edge. Defaults to None.

font_familystr

The font family to use. Defaults to None.

font_sizefloat

The font size to use. Typical range is 8 to 20. Defaults to None.

font_weightstr

The font weight to use. Values include "normal", "bold", "light", "ultralight", "heavy", and "black". Defaults to None.

text_colorstr

The color of the text. Defaults to None.

use_latexbool

Whether or not to use latex. Defaults to None.

Notes

Color parameters accept Matplotlib color formats: named colors ("blue"), short color strings ("b"), hex strings ("#0000ff"), grayscale strings ("0.5"), and RGB/RGBA tuples with values between 0 and 1 ((0, 0, 1) or (0, 0, 1, 0.5)).