Skip to content

Commit

Permalink
Improve ColorCard layout (#1876)
Browse files Browse the repository at this point in the history
JupyterViz: Reduce ColorCard height and remove extraneous in-between whitespace
  • Loading branch information
rht authored Nov 17, 2023
1 parent 080c03c commit 6d5cb67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesa/experimental/jupyter_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def get_initial_grid_layout(layout_types):
grid_lay = []
y_coord = 0
for ii in range(len(layout_types)):
template_layout = {"h": 14, "i": 0, "moved": False, "w": 5, "y": 0, "x": 0}
template_layout = {"h": 10, "i": 0, "moved": False, "w": 6, "y": 0, "x": 0}
if ii == 0:
grid_lay.append(template_layout)
else:
Expand All @@ -428,7 +428,7 @@ def get_initial_grid_layout(layout_types):
template_layout.update({"x": 0})
y_coord += 16
else:
template_layout.update({"x": 7})
template_layout.update({"x": 6})
template_layout.update({"y": y_coord})
grid_lay.append(template_layout)
return grid_lay

0 comments on commit 6d5cb67

Please sign in to comment.