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, 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 (weldx.transformations.CoordinateSystemManager) – The weldx.transformations.CoordinateSystemManager that should be plotted

  • axes (matplotlib.axes.Axes) – The target axes object that should be drawn to. If None is provided, a new one will be created.

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

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

  • data_sets (List[str]) – Names of the data sets that should be drawn. If None is provided, all data is plotted.

  • colors (Dict[str, int]) – A mapping between a coordinate system name or a data set name and a color. The 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 (pandas.DatetimeIndex, pandas.TimedeltaIndex, List[pandas.Timestamp], or weldx.transformations.LocalCoordinateSystem) – The time steps that should be plotted

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

  • title (str) – The title of the plot

  • limits (Tuple[float, float] or List[Tuple[float, float]]) – 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.

  • 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