weldx.visualization.matplotlib_impl.plot_spatial_data_matplotlib#
- weldx.visualization.matplotlib_impl.plot_spatial_data_matplotlib(data, axes=None, color=None, label=None, limits=None, show_wireframe=True)#
Visualize a
weldx.geometry.SpatialDatainstance.- Parameters
data (
Union[ndarray,SpatialData]) – The data that should be visualizedaxes (
Optional[Axes]) – The targetmatplotlib.axes.Axesobject of the plot. If ‘None’ is passed, a new figure will be createdcolor (
Union[int,tuple[int,int,int],tuple[float,float,float],None]) – A 24 bit integer, a triplet of integers with a value range of 0-255 or a triplet of floats with a value range of 0.0-1.0 that represent an RGB colorlimits (
Union[List[Tuple[float,float]],Tuple[float,float],None]) – Each tuple marks lower and upper boundary of the x, y and z axis. If only a single tuple is passed, the boundaries are used for all axis. IfNoneis provided, the axis are adjusted to be of equal length.show_wireframe (
bool) – IfTrue, the mesh is plotted as wireframe. Otherwise only the raster points are visualized. Currently, the wireframe can’t be visualized if aweldx.geometry.VariableProfileis used.
- Returns
The
matplotlib.axes.Axesinstance that was used for the plot.- Return type