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=FontConfig(large=24, medium=16, small=12), layout_config=LayoutConfig(width=1000, height=700, grid_width_per_col=400, grid_height_per_row=350, grid_horizontal_spacing=0.08, grid_vertical_spacing=0.12, margin={'l': 70, 'r': 50, 't': 90, 'b': 70}, plot_bgcolor='white', scene_bgcolor='rgba(240, 240, 240, 0.8)', title_x=0.5, title_xanchor='center', title_yanchor='top'), smoothing_config=SmoothingConfig(interp_factor=5, smoothing_sigma=0, interp_method='linear'))[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