pynaviz.audiovideo.skeleton_plot#

Classes

PlotPoints(tsdframe, initial_time, scene[, ...])

A streaming skeleton with pygfx Points and Lines.

class pynaviz.audiovideo.skeleton_plot.PlotPoints(tsdframe, initial_time, scene, color='red', markersize=8.0, thickness=2.0)[source]#

Bases: object

A streaming skeleton with pygfx Points and Lines.

Parameters:
  • tsdframe (nap.TsdFrame) – Skeleton time series data to overlay.

  • initial_time (float) – Initial time to display.

  • scene (gfx.Scene) – The scene to add the skeleton to.

  • color (tuple of float or str) – Color of the points as RGBA values between 0 and 1 or string.

  • markersize (float) – Size of the points in pixels.

  • thickness (float) – Thickness of connecting lines.

set_color(color)[source]#

Set color of the points.

Parameters:

color (tuple of float or str) – Color of the points as RGBA values between 0 and 1 or string.

set_markersize(markersize)[source]#

Set size of the points.

Parameters:

markersize (float) – Size of the points in pixels.

set_thickness(thickness)[source]#

Set thickness of the connecting lines.

Parameters:

thickness (float) – Thickness of connecting lines.

update(t)[source]#

Update skeleton to positions at time t.

Parameters:

t (float) – Time to display.