diff --git a/mesa/visualization/mpl_space_drawing.py b/mesa/visualization/mpl_space_drawing.py index 9363b75b920..83a1b5a7f37 100644 --- a/mesa/visualization/mpl_space_drawing.py +++ b/mesa/visualization/mpl_space_drawing.py @@ -205,7 +205,7 @@ def draw_space( Returns the Axes object with the plot drawn onto it. ``agent_portrayal`` is called with an agent and should return a AgentPortrayalStyle. Valid fields in this object are "color", - "size", "marker", "zorder", alpha, linewidths, and edgecolors. Other field are ignored and will result in a user warning. + "size", "marker", "zorder", "alpha", "linewidths", and "edgecolors". Other field are ignored and will result in a user warning. """ if ax is None: diff --git a/tests/test_components_matplotlib.py b/tests/test_components_matplotlib.py index 4700108a00f..0e277a12dfc 100644 --- a/tests/test_components_matplotlib.py +++ b/tests/test_components_matplotlib.py @@ -31,12 +31,7 @@ def agent_portrayal(agent): - """Simple portrayal of an agent. - - Args: - agent (Agent): The agent to portray - - """ + """Return a simple AgentPortrayalStyle for testing matplotlib drawing.""" return AgentPortrayalStyle( size=10, color="tab:blue",