Point plotting

stride.plotting.plot_points.plot_points(coordinates, axis=None, colour='red', size=15, title=None, **kwargs)[source]

Utility function to plot scattered points using matplotlib (2D) or MayaVi (3D).

Parameters:
  • coordinates (2-dimensional array) – Coordinates of the points to be plotted, shape should be (n_points, dimensions).

  • axis (axis, optional) – Axis in which to make the plotting, defaults to new empty one.

  • colour (str) – Colour to apply to the points, defaults to red.

  • size (float) – Size of the plotted points, defaults to 15.

  • title (str, optional) – Figure title, defaults to empty title.

Returns:

Generated axis

Return type:

matplotlib or MayaVi axis