suboptimumg.plotting.grid_plot_2d#
- suboptimumg.plotting.grid_plot_2d.plot_grid_2D(x_list, y_data_dict, subplot_titles, title, x_label, y_label, rows, cols, *, theme=None, fit_curve=False, font_config=None, layout_config=None, smoothing_config=None)[source]#
Generic 2D grid plotting utility.
- Parameters:
x_list (numpy.ndarray) – Numpy array of x coordinates (shared across all subplots)
y_data_dict (Dict[str, np.ndarray]) – Dictionary mapping event keys to y-data arrays
subplot_titles (List[str]) – List of subplot titles in order
title (str) – Overall grid title
x_label (str) – X-axis label for all subplots
y_label (str) – Y-axis label for all subplots
rows (int) – Number of rows in the grid
cols (int) – Number of columns in the grid
theme (str, optional) – Color theme name
fit_curve (bool, optional) – Whether to fit curves to data
font_config (FontConfig, optional) – FontConfig object for font settings
layout_config (LayoutConfig, optional) – LayoutConfig object for layout settings
smoothing_config (SmoothingConfig, optional) – SmoothingConfig object for smoothing settings
- Returns:
Plotly figure object
- Return type:
go.Figure