milkviz.point_map3d#

milkviz.point_map3d(x, y, z, types: List | np.ndarray = None, types_colors: Dict = None, values: List | np.ndarray = None, vmin: float = None, vmax: float = None, colors: List | np.ndarray = None, cmap: Any = None, legend: bool = True, legend_kw: Dict = None, cbar_kw: Dict = None, markersize: int = 5, ax: mpl.axes.Axes = None)#

Point map in 3D

Parameters
  • x – The x-coord array

  • y – The y-coord array

  • z – The z-coord array

  • types – The types array that tells the types of points

  • types_colors – A dictionary that tells color for every type, key is the type and value is the color

  • values – The values array that tells the values of points

  • vmin – Remap your values to another range

  • vmax – Remap your values to another range

  • colors – The color array that map to marker colors

  • cmap – The colormap to be used, either a cmap name or a matplotlib.cm.ColorMap

  • legend – If True, show legend

  • legend_kw – [legend_kw]

  • cbar_kw – [cbar_kw]

  • markersize – The size of marker

  • ax – Pre-existing axes for the plot. Or a new one will be created.

Returns

A matplotlib.axes.Axes instance