suboptimumg.plotting.overlay_plot_2d#

suboptimumg.plotting.overlay_plot_2d.overlay_plot2D(x_data_dict, y_data_dict, title, x_axis, y_axis, *, h_line=None, v_line=None, fit_curve=False, show_points=False, subtitle=None, 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 overlay plotting utility for plotting multiple series on the same graph.

Parameters:
  • x_data_dict (Dict[str, npt.NDArray[np.number]]) – Dictionary mapping trace labels to x data arrays

  • y_data_dict (Dict[str, npt.NDArray[np.number]]) – Dictionary mapping trace labels to y data arrays

  • title (str) – Plot title

  • x_axis (str) – X-axis label

  • y_axis (str) – Y-axis label

  • h_line (ReferenceLineConfig, optional) – ReferenceLineConfig for horizontal reference line (None = no line)

  • v_line (ReferenceLineConfig, optional) – ReferenceLineConfig for vertical reference line (None = no line)

  • fit_curve (bool, optional) – Whether to fit a curve to the data points

  • show_points (bool, optional) – Whether to show individual data points

  • subtitle (str, optional) – Optional subtitle

  • 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