pysdic.ImagePlotter.add_integration_points#
- ImagePlotter.add_integration_points(integration_points, mesh, *, projected=None, warp_by=None, color='black', size=5.0, opacity=1.0, mask=None, property=None, property_axis=None, property_clim=None, property_cmap=None, property_below_color=None, property_above_color=None, show_bar=False, bar=None, vectors=None, vector_scale=1.0, vector_color='red', show_points_index=False, index_color='black', index_font_size=8)[source]#
Add integration points to the plotter, at their global coordinates in a mesh (see
pysdic.Mesh.compute_property_interpolation()), projected or drawn as image points (seepysdic.ImagePlotter).The unlocated points (element index
-1) are not displayed.- Parameters:
integration_points (
pysdic.IntegrationPoints) – The integration points to display, consistent withmesh(seepysdic.Mesh.validate_integration_points()).mesh (
pysdic.Mesh) – The mesh in which the points are located.projected (Optional[bool], optional) – See
add_point_cloud().warp_by (Optional[Union[str, ArrayLike]], optional) – The displacement added to the vertices of the mesh before computing the coordinates of the points: the name of a vertex property or an array, of shape \((N_v, E)\).
color (str | Tuple[Real, ...]) – See
add_point_cloud().size (Real) – See
add_point_cloud().opacity (Real) – See
add_point_cloud().mask (Optional[ArrayLike], optional) – A boolean array of shape \((N_p,)\), True for the points to display.
property (Optional[Union[str, ArrayLike]], optional) – The property used to color the points: the name of a property of the integration points, or an array of shape \((N_p,)\) or \((N_p, A)\).
property_axis (Integral | None) – See
add_point_cloud().property_clim (Tuple[Real, Real] | None) – See
add_point_cloud().property_cmap (str | Colormap | None) – See
add_point_cloud().property_below_color (str | Tuple[Real, ...] | None) – See
add_point_cloud().property_above_color (str | Tuple[Real, ...] | None) – See
add_point_cloud().show_bar (bool) – See
add_point_cloud().bar (Dict[str, Any] | None) – See
add_point_cloud().vectors (Optional[Union[str, ArrayLike]], optional) – A vector field in the image plane: the name of a property of the integration points or an array of shape \((N_p, 2)\).
vector_scale (Real | _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – See
add_point_cloud().vector_color (str | Tuple[Real, ...]) – See
add_point_cloud().show_points_index (bool) – See
add_point_cloud()(the index of each point inintegration_points).index_color (str | Tuple[Real, ...]) – See
add_point_cloud()(the index of each point inintegration_points).index_font_size (Real) – See
add_point_cloud()(the index of each point inintegration_points).
- Raises:
TypeError – If
integration_pointsis not apysdic.IntegrationPointsormeshis not apysdic.Mesh.ValueError – If the points are not consistent with the mesh, or see
add_point_cloud().
- Return type:
None