netneurotools.plotting.plot_point_brain

netneurotools.plotting.plot_point_brain(data, coords, views=None, views_orientation='vertical', views_size=(4, 2.4), cbar=False, robust=True, size=50, **kwargs)[source]

Plot data as a cloud of points in 3D space based on specified coords.

Parameters:
  • data ((N,) array_like) – Data for an N node parcellation; determines color of points

  • coords ((N, 3) array_like) – x, y, z coordinates for N node parcellation

  • views (list, optional) – List specifying which views to use. Can be any of {‘sagittal’, ‘sag’, ‘coronal’, ‘cor’, ‘axial’, ‘ax’}. If not specified will use ‘sagittal’ and ‘axial’. Default: None

  • views_orientation (str, optional) – Orientation of the views. Can be either ‘vertical’ or ‘horizontal’. Default: ‘vertical’.

  • views_size (tuple, optional) – Figure size of each view. Default: (4, 2.4)

  • cbar (bool, optional) – Whether to also show colorbar. Default: False

  • robust (bool, optional) – Whether to use robust calculation of vmin and vmax for color scale.

  • size (int, optional) – Size of points on plot. Default: 50

  • **kwargs – Key-value pairs passed to matplotlib.axes.Axis.scatter

Returns:

fig

Return type:

matplotlib.figure.Figure