The BaseArtist Class

class src.matnimation.artist.base_artist.BaseArtist(name: str)

Bases: ABC

__init__(name: str)

Initialize a BaseArtist object.

Parameters:

name (str) – Name of the artist

add_to_axes(axes: Axes)

Add the artist to a specific axes.

Parameters:

axes (Axes) – Axes object to add the artist to

get_legend_handle()

Get the legend handle for the artist.

Returns:

Legend handle for the artist

Return type:

Artist

set_styling_properties(**styling)

Set styling properties for the artist.

Parameters:

**styling (dict) – Keyword arguments for styling the artist

abstract update_timestep(time_index: int)

Abstract method to update the artist for a specific time index.

This method must be implemented by subclasses.

Parameters:

time_index (int) – Index representing the time step