rofunc.devices.optitrack.visualize#
1. Module Contents#
1.1. Classes#
1.2. Functions#
Plots the objects in the objs dict. The default bounding box for the plot is: xlim = (-1200, 1200) ylim = (-0.5, 2000) zlim = (-1200, 1200) |
1.3. Data#
1.4. API#
- rofunc.devices.optitrack.visualize.COLORS = ['b', 'g', 'r', 'c', 'm', 'y', 'k']#
- class rofunc.devices.optitrack.visualize.PauseAnimation(fig, *args, **kwargs)[source]#
Bases:
objectInitialization
- rofunc.devices.optitrack.visualize.visualize_objects(parent_dir: str, objs: dict, meta: dict, show_markers: bool = True, save_gif: bool = False, scale: str = '', up_axis: str = 'Y')[source]#
Plots the objects in the objs dict. The default bounding box for the plot is: xlim = (-1200, 1200) ylim = (-0.5, 2000) zlim = (-1200, 1200)
For more precise plots, we offer two scaling options: ‘’ - No scaling, use default bounding box ‘max_scale’ - scales the data tp a (-1, 1). Respects original offset to center of scene and aspect ratio. ‘center_scale’ - scales the plot to a centered (-1, 1) box. Respects the original aspect ratio. :param parent_dir: Directory where the data is stored. :param objs: Dictionary of objects to plot. :param meta: Dictionary of metadata. :param show_markers: :param save_gif: Whether to save the gif. Defaults to False. :param scale: Normalization method. Defaults to ‘’. :param up_axis: Axis to be considered as up. Defaults to ‘Y’. :return: