TypeError: ‘collection’ must be an instance of matplotlib.collections.Collection, not a matplotlib.image.AxesImage
TypeError: ‘collection’ must be an instance of matplotlib.collections.Collection, not a matplotlib.image.AxesImage
see here: Spatial Segment TypeError