If to put plt.show() out of loop then it's one figure, if it's in the loop then it's a figure appearing one by one after closing previous one. How to make to open all 3 figures together, but not in subplot?
# import the necessary packages
from skimage.segmentation import slic
from skimage.segmentation import mark_boundaries
from skimage.util import img_as_float
import matplotlib.pyplot as plt
import cv2 as cv
image = img_as_float(cv.imread("/Users/ilsuleym/Documents/DCNNtest/1M10.tif"))
f = plt.figure()
# loop over the number of segments
for numSegments, i in ((100, 1), (200, 2), (300, 3)):
segments = slic(image, n_segments=numSegments, sigma=5)
f = plt.imshow(mark_boundaries(image, segments))
plt.title("%d segments" % (numSegments))
plt.axis("off")
plt.show()