milkviz.point_map#
- milkviz.point_map(points, *, types=None, order=None, values=None, links=None, colors=None, cmap=None, norm=None, vmin=None, vmax=None, center=None, rotate=None, markersize=5, edgecolor=None, edgewidth=None, linkcolor='#cccccc', linkwidth=1, frameon=False, legend=True, legend_kw=None, cbar_kw=None, ax=None, **kwargs)#
Point map
- Parameters
- pointsarray-like
2D or 3D points
- typesarray-like
The categorical label for each point
- orderarray-like
The order of types that presents in legends
- valuesarray-like
The numeric value for each point
- linksarray-like of (point_index1, point_index2)
The links between points
- colorsarray, mapping
Either array that represents colors or a dict that map types to colors
- cmap
- norm
- vmin
- vmax
- center
- rotatefloat
The degree to rotate the whole plot according to origin, only rotate x and y
- markersizefloat
The size of marker
- edgecolorcolor
- edgewidthfloat
- linkcolor
The color of lines
- linkwidth
The width of lines
- frameonbool
If True, will turn off the frame of the plot
- legendbool
Whether to show the legend
- legend_kwdict
Pass to
legendkit.legend()
- cbar_kwdict
Pass to
legend.colorbar()
- axAxes
- kwargs
Pass to
matplotlib.axes.Axes.scatter()
- Returns
- Axes