graphinglib.Point#

class graphinglib.Point(x: float, y: float, label: str | None = None, color: str | None = 'default', edge_color: str | None = 'default', marker_size: float | Literal['default'] = 'default', marker_style: str = 'default', edge_width: float | Literal['default'] = 'default', font_size: int | Literal['same as figure'] = 'same as figure', text_color: str = 'default', h_align: str = 'left', v_align: str = 'bottom')[source]#

This class implements a point object.

The Point object can be used to show important coordinates in a plot or add a label to some point.

Parameters:
x, yfloat

The x and y coordinates of the Point.

labelstr, optional

Label to be attached to the Point.

colorstr or None

Face color of the marker. Default depends on the figure_style configuration.

edge_colorstr or None

Edge color of the marker. Default depends on the figure_style configuration.

marker_sizefloat

Size of the marker. Default depends on the figure_style configuration.

marker_stylestr

Style of the marker. Default depends on the figure_style configuration.

edge_widthfloat

Edge width of the marker. Default depends on the figure_style configuration.

font_sizefloat

Font size for the text attached to the marker. Default depends on the figure_style configuration.

text_colorstr

Color of the text attached to the marker. “same as point” uses the color of the point (prioritize edge color, then face color). Default depends on the figure_style configuration.

h_align, v_alignstr

Horizontal and vertical alignment of the text attached to the Point. Defaults to bottom left.

Methods

__init__(x, y[, label, color, edge_color, ...])

This class implements a point object.

add_coordinates()

Displays the coordinates of the Point next to it.

copy()

Returns a deep copy of the Point object.