c2v.pl.fancy_legend#
- c2v.pl.fancy_legend(axes, textsize=10, fontweight='normal', center_loc=False, line=False, max_distance=0.2, **kwargs)#
Adds a legend to the plot with cluster labels aligned to the cluster centers.
Parameters:#
- axesmatplotlib.axes.Axes | list[matplotlib.axes.Axes]
The axes object to draw on (e.g., fig.axes[0]).
- textsizeint, optional
Size of the text labels. Default 10.
- fontweightstr, optional
Font weight of the text labels. Default “normal”.
- **kwargsdict, optional
Additional keyword arguments passed to textalloc.alloc().