suboptimumg.plotting.overlay_grid_plot_2d#

suboptimumg.plotting.overlay_grid_plot_2d.overlay_grid_plot_2D(x_data_dict, y_data_dict, subplot_titles, title, x_label, y_label, rows, cols, *, show_points=False, show_legend=False, fit_curve=False, 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'), font_config=FontConfig(large=24, medium=16, small=12), smoothing_config=SmoothingConfig(interp_factor=5, smoothing_sigma=0, interp_method='linear'))[source]#

Generic 2D overlay grid plotting utility for comparing data source across multiple subplots. Each subplot contains one trace for each data source, allowing for easy comparison of trends across different categories.

Parameters:
  • x_data_dict (Dict[str, Dict[str, npt.NDArray[np.number]]]) – {subplot_key: {trace_label: x_data_array}} - subplot_key: identifies which subplot the data belongs to (must match order in subplot_titles) - trace_label: identifies which trace/series (must match keys in y_data_dict[subplot_key])

  • y_data_dict (Dict[str, Dict[str, npt.NDArray[np.number]]]) – {subplot_key: {trace_label: y_data_array}} - subplot_key: identifies which subplot the data belongs to (must match order in subplot_titles) - trace_label: identifies which trace/series (must match keys in x_data_dict[subplot_key])

  • subplot_titles (List[str]) – List of titles for each subplot

  • title (str) – Overall title for the grid

  • x_label (str) – Label for x-axis

  • y_label (str) – Label for y-axis

  • rows (int) – Number of rows in the grid

  • cols (int) – Number of columns in the grid

  • show_legend (bool, optional) – If True, shows legend on the first subplot

  • fit_curve (bool, optional) – Whether to use spline fitting for curves

  • smoothing (float, optional) – Smoothing parameter (deprecated, use smoothing_config)

  • interp_factor (int, optional) – Interpolation factor (deprecated, use smoothing_config)

  • layout_config (LayoutConfig, optional) – Layout configuration object

  • font_config (FontConfig, optional) – Font configuration object

  • smoothing_config (SmoothingConfig, optional) – Smoothing configuration object

  • show_points (bool)

Returns:

Plotly figure object

Return type:

go.Figure