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. If None is provided, a new one will be created.

  • reference_system (Optional[str]) – The name of the reference system for the plotted coordinate systems

  • coordinate_systems (Optional[list[str]]) – Names of the coordinate systems that should be drawn. If None is provided, all systems are plotted.

  • data_sets (Optional[list[str]]) – Names of the data sets that should be drawn. If None is 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 example 0xFF0000 for 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 plotted

  • time_ref (Optional[Timestamp]) – A reference timestamp that can be provided if the time parameter is a pandas.TimedeltaIndex

  • title (Optional[str]) – The title of the plot

  • limits (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. If None is 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 vectors

  • set_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

  • show_origins (bool) – If True, the origins of the coordinate system are visualized in the color assigned to the coordinate system.

  • show_trace (bool) – If True, the trace of time dependent coordinate systems is plotted.

  • show_vectors (bool) – If True, the coordinate cross of time dependent coordinate systems is plotted.

  • show_wireframe (bool) – If True, 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

matplotlib.axes.Axes