sq.pl.spatial_segment( TypeError: 'collection'

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

see here: Spatial Segment TypeError