suboptimumg.plotting.plot_3d#
- suboptimumg.plotting.plot_3d.plot3D_contour(x_list, y_list, z_list, title, x_axis, y_axis, z_axis, subtitle=None, theme=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'), colorbar_config=ColorbarConfig(thickness=15, length=0.7), smoothing_config=SmoothingConfig(interp_factor=5, smoothing_sigma=0, interp_method='linear'))[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.plot_3d.plot3D_surface(x_list, y_list, z_list, title, x_axis, y_axis, z_axis, subtitle=None, theme=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'), colorbar_config=ColorbarConfig(thickness=15, length=0.7), smoothing_config=SmoothingConfig(interp_factor=5, smoothing_sigma=0, interp_method='linear'), scene_config=SceneConfig(aspect_ratio_x=1.0, aspect_ratio_y=1.0, aspect_ratio_z=0.8, camera_distance=2.0, camera_z=0.8, default_view_angle=-60, camera_up_x=0, camera_up_y=0, camera_up_z=1))[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