suboptimumg.plotting.stem_plot#

suboptimumg.plotting.stem_plot.plot_3d_stem(x, y, z, title=None, z_label=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'), 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]#

Creates a 3D stem plot with vertical lines extending from baseline to data points.

This is a general-purpose 3D stem plotting utility that creates vertical lines (stems) from a baseline to each data point, with markers at the top of each stem.

Parameters:
  • x (NDArray[float64]) – X coordinates of data points

  • y (NDArray[float64]) – Y coordinates of data points

  • z (NDArray[float64]) – Z values (heights) of data points

  • title (str, optional) – Plot title (default: None)

  • z_label (str, optional) – Z-axis label (default: None)

  • theme (str, optional) – The color theme to use (default: None)

  • font_config (FontConfig, optional) – Font configuration object

  • layout_config (LayoutConfig, optional) – Layout configuration object

  • scene_config (SceneConfig, optional) – Scene configuration object for the 3D view

Returns:

Plotly figure object with 3D stem plot

Return type:

go.Figure