graphinglib.MultiFigure.set_visual_params#
- MultiFigure.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, grid_line_style: str | None = None, grid_line_width: float | None = None, grid_color: str | None = None, grid_alpha: float | None = 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 toFalse.- 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.5to3. Defaults toNone.- 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
8to20. Defaults toNone.- font_weightstr
The font weight to use. Values include
"normal","bold","light","ultralight","heavy", and"black". Defaults toNone.- text_colorstr
The color of the text. Defaults to
None.- use_latexbool
Whether or not to use latex. Defaults to
None.- grid_line_stylestr
The style of the grid lines. Values include
"-","--","-.",":","solid","dashed","dashdot", and"dotted". Defaults toNone.- grid_line_widthfloat
The width of the grid lines. Typical range is
0.5to3. Defaults toNone.- grid_colorstr
The color of the grid lines. Defaults to
None.- grid_alphafloat
The alpha of the grid lines. Range is
0(transparent) to1(opaque). Defaults toNone.
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 between0and1((0, 0, 1)or(0, 0, 1, 0.5)).