mark_magnifying_glass
- mark_magnifying_glass(x: float | Sequence[float], y: float | Sequence[float], ax: Axes | None = None, *, alpha: float = 1.0, color: str = 'black', color_accent: str | None = None, linecolor: str = 'none', markersize: float = 15, rotate_angle: float = 20, **kwargs) None [source]
Draw magnifying glass marker(s) at specified location(s) on a matplotlib plot.
This function creates a magnifying glass glyph by stacking several matplotlib markers.
- Parameters:
x (float or sequence of floats) – The x-coordinate(s) where the magnifying glass(es) will be placed.
y (float or sequence of floats) – The y-coordinate(s) where the magnifying glass(es) will be placed.
ax (mpl_axes.Axes, optional) –
The axes object on which to draw the markers.
If None, plt.gca() will be used.
color_accent (Optional[str], optional) –
The default accent color for the glyph.
If color is “white”, defaults “black”. Otherwise, defaults “white”.
alpha (float, default 1.0) – The transparency level of the markers.
color (str, default "black") – The primary color for the glyph components.
linecolor (str, default "none") – Color for connecting lines between markers, if any.
markersize (float, default 15) – Size for glyph’s largest marker element.
rotate_angle (float, default 20) – The angle (in degrees) to rotate the asterisk part of the magnifying glass.
**kwargs (dict, optional) – Additional keyword arguments forward to matplotlib plot.
- Return type:
None