Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4c0002b

Browse filesBrowse files
committed
fix finding if imagegraphic is present
1 parent 57e0fe9 commit 4c0002b
Copy full SHA for 4c0002b

File tree

Expand file treeCollapse file tree

1 file changed

+11
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-4
lines changed

‎fastplotlib/layouts/_frame/_frame.py

Copy file name to clipboardExpand all lines: fastplotlib/layouts/_frame/_frame.py
+11-4Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,17 @@ def show(
122122
sidecar_kwargs = dict()
123123

124124
# flip y axis if ImageGraphics are present
125-
for g in self.graphics:
126-
if isinstance(g, ImageGraphic):
127-
self.camera.local.scale_y = -1
128-
break
125+
if hasattr(self, "_subplots"):
126+
for subplot in self:
127+
for g in subplot:
128+
if isinstance(g, ImageGraphic):
129+
subplot.camera.local.scale_y = -1
130+
break
131+
else:
132+
for g in self.graphics:
133+
if isinstance(g, ImageGraphic):
134+
self.camera.local.scale_y = -1
135+
break
129136

130137
if autoscale:
131138
self._autoscale_init(maintain_aspect)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.