Skip to content

Commit f1db32f

Browse files
authored
proper z layering for images (#944)
1 parent c924c66 commit f1db32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastplotlib/layouts/_plot_area.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def _sort_images_by_depth(self):
446446
from the camera).
447447
"""
448448
count = 0
449-
for graphic in self._graphics:
449+
for graphic in reversed(self._graphics):
450450
if isinstance(graphic, ImageGraphic):
451451
count += 1
452452
auto_depth = -count

0 commit comments

Comments
 (0)