Plot Functions#

Cross-section geometry#

plot_sg_matplotlib(sg, *[, ax, figure_size, ...])

Plot one structure-gene cross-section with matplotlib.

plot_sg_plotly(sg, *[, mesh_style, ...])

Plot one structure-gene cross-section with Plotly.

plot_sg_2d(sg[, ax, ec_mesh, fc_mesh, ...])

Plot the mesh of a 2D structure gene.

plot_model_2d(model[, ax, origin, legend_kwards])

Plot the constitutive-model overlays of a 2D beam section.

plot_sg_2d_plotly(sg[, mesh_style, ...])

Plot the mesh of a single 2D cross-section using plotly.

plot_model_2d_plotly(model[, sg, ...])

Plot the constitutive-model overlays of a 2D beam section using plotly.

plot_sg_3d_beam(csv_file, section_dir, ax[, ...])

Plot multiple beam cross-sections in 3D along the spanwise direction.

plot_sg_3d_beam_plotly(csv_file, section_dir)

Plot multiple beam cross-sections in 3D using plotly (HTML output).

PyVista scenes#

plot_sg_pyvista(sg, *[, scalars, ...])

Plot one structure gene with PyVista.

create_pyvista_plotter(mesh, *[, scalars, ...])

Create an interactive PyVista scene for an SGMesh.

create_pyvista_local_axis_multiblock(mesh, *)

Create a VTM-ready mesh and local-axis glyph scene.

plot_pyvista_local_axes(vtm_file, *[, ...])

Plot a VTM mesh scene with sampled element local-axis glyphs.

Matrices#

plot_matrix(matrix[, fig, ax, row_labels, ...])

Plot a heatmap of an arbitrary 2D matrix.

plot_matrix_bar3d(matrix[, fig, ax, ...])

Plot a 2D matrix as a 3D bar chart using matplotlib bar3d.

plot_model_matrix(model[, kind, fig, ax, ...])

Plot the stiffness / compliance matrix of a structural model.