Skip to content

Commit e48c1cd

Browse files
Fix: Property layer data mapping for both Altair and Matplotlib backends (#2869)
1 parent eb4efe9 commit e48c1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesa/visualization/backends/altair_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def draw_propertylayer(
388388
df = pd.DataFrame(
389389
{
390390
"x": np.repeat(np.arange(data.shape[0]), data.shape[1]),
391-
"y": np.tile(np.arange(data.shape[1]), data.shape[0]),
391+
"y": np.tile(np.arange(data.shape[1] - 1, -1, -1), data.shape[0]),
392392
"value": data.flatten(),
393393
}
394394
)

0 commit comments

Comments
 (0)