suboptimumg.plotting.generic_plot#
- suboptimumg.plotting.generic_plot.plot2D(x_list, y_list, title, x_axis, y_axis, h_line=None, v_line=None, fit_curve=False, show_points=False, subtitle=None, data_label=None, theme=None, font_config=None, layout_config=None, smoothing_config=None)[source]#
Generic 2D plotting utility.
- Parameters:
x_list (numpy.ndarray) – Numpy array of x coordinates
y_list (numpy.ndarray) – Numpy array of y coordinates
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
data_label (str, optional) – Curve label used in legend
theme (str, optional) – Color theme name, see plotting.color_theme
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
- suboptimumg.plotting.generic_plot.plot3D_contour(x_list, y_list, z_list, title, x_axis, y_axis, z_axis, subtitle=None, theme=None, font_config=None, layout_config=None, colorbar_config=None, smoothing_config=None)[source]#
Generic 3D contour plotting utility.
Handles both grid data (2D z array) and scatter data (1D x, y, z arrays). For grid data: Creates interpolated contour plot with contour lines. For scatter data: Creates scatter plot with points colored by z values.
- Parameters:
x_list (numpy.ndarray) – X coordinates (1D for grid, 1D for scatter)
y_list (numpy.ndarray) – Y coordinates (1D for grid, 1D for scatter)
z_list (numpy.ndarray) – Z values (2D for grid, 1D for scatter)
title (str) – Plot title
x_axis (str) – X-axis label
y_axis (str) – Y-axis label
z_axis (str) – Z-axis label
subtitle (str, optional) – Optional subtitle
theme (str, optional) – Color theme name
font_config (FontConfig, optional) – FontConfig object for font settings
layout_config (LayoutConfig, optional) – LayoutConfig object for layout settings
colorbar_config (ColorbarConfig, optional) – ColorbarConfig object for colorbar settings
smoothing_config (SmoothingConfig, optional) – SmoothingConfig object for smoothing settings
- Returns:
Plotly figure object
- Return type:
go.Figure
- suboptimumg.plotting.generic_plot.plot3D_surface(x_list, y_list, z_list, title, x_axis, y_axis, z_axis, subtitle=None, theme=None, font_config=None, layout_config=None, colorbar_config=None, smoothing_config=None, scene_config=None)[source]#
Generic 3D surface plotting utility.
Handles both grid data (2D z array) and scatter data (1D x, y, z arrays). For grid data: Creates interpolated surface plot with contour lines. For scatter data: Creates 3D scatter plot with points colored by z values.
- Parameters:
x_list (numpy.ndarray) – X coordinates (1D for grid, 1D for scatter)
y_list (numpy.ndarray) – Y coordinates (1D for grid, 1D for scatter)
z_list (numpy.ndarray) – Z values (2D for grid, 1D for scatter)
title (str) – Plot title
x_axis (str) – X-axis label
y_axis (str) – Y-axis label
z_axis (str) – Z-axis label
subtitle (str, optional) – Optional subtitle
theme (str, optional) – Color theme name
font_config (FontConfig, optional) – FontConfig object for font settings
layout_config (LayoutConfig, optional) – LayoutConfig object for layout settings
colorbar_config (ColorbarConfig, optional) – ColorbarConfig object for colorbar settings
smoothing_config (SmoothingConfig, optional) – SmoothingConfig object for smoothing settings
scene_config (SceneConfig, optional) – SceneConfig object for 3D scene settings
- Returns:
Plotly figure object
- Return type:
go.Figure