Skip to content

Commit 115fb29

Browse files
authored
Fix visualization error for PropertyLayers on HexGrids (#2868).
1 parent 11bbc52 commit 115fb29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesa/visualization/backends/matplotlib_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def draw_propertylayer(self, space, property_layers, propertylayer_portrayal):
391391
elif isinstance(space, HexGrid):
392392
hexagons = self.space_drawer.hexagons
393393
norm = Normalize(vmin=vmin, vmax=vmax)
394-
colors = data.ravel()
394+
colors = data.T.ravel()
395395

396396
if color:
397397
normalized_colors = np.clip(norm(colors), 0, 1)

0 commit comments

Comments
 (0)