@@ -218,8 +218,26 @@ def update(self):
218218
219219
220220class CellAgentArtists (Artist ):
221- """
222- A visual representation of CellAgents.
221+ """Renders agents on a cell-based grid space.
222+
223+ Visualizes agents that live on cells.
224+ Each agent is drawn at its cell's coordinate position.
225+
226+ Args:
227+ color: Default color for all entities. Used when color_attribute is None.
228+ color_attribute: Agent attribute name or callable to determine color.
229+ color_map: Matplotlib colormap name or dict mapping values to colors.
230+ color_vmin: Minimum value for colormap normalization.
231+ color_vmax: Maximum value for colormap normalization.
232+ shape: Entity shape, either "rect" or "circle".
233+ size: Size multiplier relative to cell size. Defaults to 1.
234+ filter_entities: Callable to filter which agents are displayed.
235+ jitter: If True, adds random offset to prevent overlap.
236+ dynamic_color: If True, updates colors each frame.
237+ dynamic_position: If True, updates positions each frame.
238+ dynamic_population: If True, handles agents being added/removed.
239+ get_population: Callable returning the agent collection from model.
240+ get_xy_position: Callable returning (x, y) position for an agent.
223241 """
224242
225243 def __init__ (
@@ -266,8 +284,26 @@ def scale_y(self, y):
266284
267285
268286class CellArtists (Artist ):
269- """
270- A visual representation of Cells.
287+ """Renders cells of a grid space.
288+
289+ Visualizes the cells themselves (not agents on them). Useful for displaying
290+ cell properties like terrain type, resource levels, or other cell attributes.
291+
292+ Args:
293+ color: Default color for all cells. Used when color_attribute is None.
294+ color_attribute: Cell attribute name or callable to determine color.
295+ color_map: Matplotlib colormap name or dict mapping values to colors.
296+ color_vmin: Minimum value for colormap normalization.
297+ color_vmax: Maximum value for colormap normalization.
298+ shape: Cell shape, either "rect" or "circle".
299+ size: Size multiplier relative to cell size. Defaults to 1.
300+ filter_entities: Callable to filter which cells are displayed.
301+ jitter: If True, adds random offset to cell positions.
302+ dynamic_color: If True, updates colors each frame.
303+ dynamic_position: If True, updates positions each frame.
304+ dynamic_population: If True, handles cells being added/removed.
305+ get_population: Callable returning the cell collection from model.
306+ get_xy_position: Callable returning (x, y) position for a cell.
271307 """
272308
273309 def __init__ (
@@ -312,8 +348,26 @@ def scale_y(self, y):
312348
313349
314350class ContinuousSpaceAgentArtists (Artist ):
315- """
316- A visual representation of ContinuousSpaceAgents.
351+ """Renders agents in a continuous space.
352+
353+ Visualizes agents that move freely in continuous 2D space rather than
354+ on a discrete grid. Positions are scaled to fit the plot area.
355+
356+ Args:
357+ color: Default color for all agents. Used when color_attribute is None.
358+ color_attribute: Agent attribute name or callable to determine color.
359+ color_map: Matplotlib colormap name or dict mapping values to colors.
360+ color_vmin: Minimum value for colormap normalization.
361+ color_vmax: Maximum value for colormap normalization.
362+ shape: Agent shape, either "rect" or "circle".
363+ size: Size multiplier for agent sprites. Defaults to 2.
364+ filter_entities: Callable to filter which agents are displayed.
365+ jitter: If True, adds random offset to prevent overlap.
366+ dynamic_color: If True, updates colors each frame.
367+ dynamic_position: If True, updates positions each frame.
368+ dynamic_population: If True, handles agents being added/removed.
369+ get_population: Callable returning the agent collection from model.
370+ get_xy_position: Callable returning (x, y) position for an agent.
317371 """
318372
319373 def __init__ (
@@ -358,6 +412,28 @@ def scale_y(self, y):
358412
359413
360414class NetworkCellArtists (Artist ):
415+ """Renders nodes and edges of a network graph.
416+
417+ Visualizes cells as nodes in a network layout.
418+
419+ Args:
420+ color: Default color for all nodes. Used when color_attribute is None.
421+ color_attribute: Cell attribute name or callable to determine color.
422+ color_map: Matplotlib colormap name or dict mapping values to colors.
423+ color_vmin: Minimum value for colormap normalization.
424+ color_vmax: Maximum value for colormap normalization.
425+ shape: Node shape, either "rect" or "circle".
426+ size: Size multiplier for node sprites. Defaults to 2.
427+ filter_entities: Callable to filter which nodes are displayed.
428+ jitter: If True, adds random offset to node positions.
429+ dynamic_color: If True, updates colors each frame.
430+ dynamic_position: If True, updates positions each frame.
431+ dynamic_population: If True, handles nodes being added/removed.
432+ networkx_layout: Layout function from networkx (e.g., spring_layout).
433+ get_population: Callable returning the cell collection from model.
434+ get_xy_position: Callable returning (x, y) position for a cell.
435+ """
436+
361437 def __init__ (
362438 self ,
363439 color : Color = "black" ,
@@ -447,6 +523,28 @@ def draw(self):
447523
448524
449525class NetworkAgentArtists (NetworkCellArtists ):
526+ """Renders agents on a network graph.
527+
528+ Visualizes agents that live on network nodes.
529+
530+ Args:
531+ color: Default color for all agents. Used when color_attribute is None.
532+ color_attribute: Agent attribute name or callable to determine color.
533+ color_map: Matplotlib colormap name or dict mapping values to colors.
534+ color_vmin: Minimum value for colormap normalization.
535+ color_vmax: Maximum value for colormap normalization.
536+ shape: Agent shape, either "rect" or "circle".
537+ size: Size multiplier for agent sprites. Defaults to 2.
538+ filter_entities: Callable to filter which agents are displayed.
539+ jitter: If True, adds random offset to prevent overlap.
540+ dynamic_color: If True, updates colors each frame.
541+ dynamic_position: If True, updates positions each frame.
542+ dynamic_population: If True, handles agents being added/removed.
543+ networkx_layout: Layout function from networkx (e.g., spring_layout).
544+ get_population: Callable returning the agent collection from model.
545+ get_xy_position: Callable returning (x, y) position for an agent.
546+ """
547+
450548 def __init__ (
451549 self ,
452550 color : Color = "black" ,
0 commit comments