Add is_image property to MapGeom object
@@ -1342,3 +1342,11 @@ class MapGeom(object):
else:
raise ValueError('Invalid node type '
'{}'.format(ax.node_type))
+
+ @property
+ def is_image(self):
+ """Whether the geom is equivalent to an image without extra dimensions."""
+ if self.axes is None:
+ return True
+ is_image = len(self.axes) == 0
+ return is_image
