Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualisation: Allow specifying Agent shapes in agent_portrayal #2214

Merged
merged 8 commits into from
Aug 21, 2024

Commits on Aug 15, 2024

  1. add shape options in matplotlib visualization

    "shape" in agent_portrayal corresponds to "marker" in matplotlib's scatter function.
    rmhopkins4 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    e71d402 View commit details
    Browse the repository at this point in the history
  2. fix code formatting

    rmhopkins4 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    7da6940 View commit details
    Browse the repository at this point in the history
  3. added default values to viz

    Previously, if only some agent_portrayals provided info like size, color, matplotlib would not accept the parameters and the program would crash.
    Additionally, edited some names for coherence.
    rmhopkins4 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    536f8a7 View commit details
    Browse the repository at this point in the history
  4. fix assertion to exception

    rmhopkins4 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    6e39e2f View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. fix error message, default shape, color

    error message shows public names of visualization attributes.
    default color and marker fixed to "tab:blue" & "o" respectively
    rmhopkins4 committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    1c65164 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    adf9bee View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Update vizualization tutorial for shape mention

    Viz tutorial now mentions that in addition to size and color, default drawer allows for custom shape.
    rmhopkins4 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    09bb236 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8072791 View commit details
    Browse the repository at this point in the history