weldx.visualization.matplotlib_impl.plot_coordinate_system_manager_matplotlib#
- weldx.visualization.matplotlib_impl.plot_coordinate_system_manager_matplotlib(csm, axes=None, reference_system=None, coordinate_systems=None, data_sets=None, colors=None, time=None, time_ref=None, title=None, limits=None, scale_vectors=None, set_axes_equal=False, show_origins=True, show_trace=True, show_vectors=True, show_wireframe=True)#
Plot the coordinate systems of a
weldx.transformations.CoordinateSystemManager.- Parameters
csm (
CoordinateSystemManager) – The coordinate system manager instance that should be plotted.axes (
Optional[Axes]) – The target axes object that should be drawn to. IfNoneis provided, a new one will be created.reference_system (
Optional[str]) – The name of the reference system for the plotted coordinate systemscoordinate_systems (
Optional[list[str]]) – Names of the coordinate systems that should be drawn. IfNoneis provided, all systems are plotted.data_sets (
Optional[list[str]]) – Names of the data sets that should be drawn. IfNoneis provided, all data is plotted.colors (
Optional[dict[str,Union[int,tuple[int,int,int]]]]) – A mapping between a coordinate system name or a data set name and a color. Integer colors must be provided as 24 bit integer values that are divided into three 8 bit sections for the rgb values. For example0xFF0000for pure red. Each coordinate system or data set that does not have a mapping in this dictionary will get a default color assigned to it.time (
Union[DatetimeIndex,TimedeltaIndex,List[Timestamp],None]) – The time steps that should be plottedtime_ref (
Optional[Timestamp]) – A reference timestamp that can be provided if thetimeparameter is apandas.TimedeltaIndexlimits (
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.scale_vectors (
Union[float,list,ndarray,None]) – A scaling factor or array to adjust the length of the coordinate system vectorsset_axes_equal (
bool) –- (matplotlib only) If
True, all axes are adjusted to cover an equally large range of value. That doesn’t mean, that the limits are identical
- (matplotlib only) If
show_origins (
bool) – IfTrue, the origins of the coordinate system are visualized in the color assigned to the coordinate system.show_trace (
bool) – IfTrue, the trace of time dependent coordinate systems is plotted.show_vectors (
bool) – IfTrue, the coordinate cross of time dependent coordinate systems is plotted.show_wireframe (
bool) – IfTrue, the mesh is visualized as wireframe. Otherwise, it is not shown.
- Returns
The axes object that was used as canvas for the plot.
- Return type