weldx.geometry.Geometry.plot#
- Geometry.plot(profile_raster_width='1mm', trace_raster_width='50mm', axes=None, color=None, label=None, limits=None, show_wireframe=True, backend='mpl')#
Plot the geometry.
- Parameters
profile_raster_width (pint.Quantity) – Target distance between the individual points of a profile
trace_raster_width (pint.Quantity) – Target distance between the individual profiles on the trace
axes (matplotlib.axes.Axes) – The target
matplotlib.axes.Axes
object of the plot. If ‘None’ is passed, a new figure will be createdcolor (Union[int, Tuple[int, int, int], Tuple[float, float, float]]) – 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 color
label (str) – Label of the plotted geometry
limits (
Union
[List
[Tuple
[float
,float
]],Tuple
[float
,float
],None
]) – Either a single tuple of two float values that specifies the minimum and maximum value of all 3 axis or a list containing 3 tuples to specify the limits of each axis individually. IfNone
is passed, the limits will be set automatically.show_wireframe (bool) – (matplotlib only) If
True
, the mesh is plotted as wireframe. Otherwise only the raster points are visualized. Currently, the wireframe can’t be visualized if aweldx.geometry.VariableProfile
is used.backend (
str
) –Select the rendering backend of the plot. The options are:
k3d
to get an interactive plot using k3dmpl
for static plots using matplotlib
Note that k3d only works inside jupyter notebooks
- Returns
The utilized matplotlib axes, if matplotlib was used as rendering backend
- Return type