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

Updated Docs #2623

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/apis/visualization.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ For a detailed tutorial, please refer to our [Visualization Tutorial](../tutoria
:show-inheritance:
```

```{eval-rst}
.. automodule:: mesa.visualization.components.__init__
:members:
:undoc-members:
:show-inheritance:
```
## Altair-based visualizations

```{eval-rst}
Expand Down
5 changes: 3 additions & 2 deletions mesa/examples/advanced/sugarscape_g1mt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ def portray(g):
cmap="spring",
origin="lower",
)
fig.colorbar(im, orientation="vertical")
fig.colorbar(im, ax=ax, orientation="vertical", pad=0.1, fraction=0.046)
# Spice
ax.imshow(
im_spice = ax.imshow(
np.ma.masked_where(model.grid.spice.data <= 1, model.grid.spice.data),
cmap="winter",
origin="lower",
)
fig.colorbar(im_spice, ax=ax, orientation="vertical", fraction=0.046, pad=0.04)
# Trader
ax.scatter(**out["trader"])
ax.set_axis_off()
Expand Down
Loading