Explicitly define colormap

This commit is contained in:
Johannes Schönberger
2012-08-31 22:55:24 +02:00
parent c9291718f9
commit f360316f17
+1 -1
View File
@@ -40,7 +40,7 @@ borders = np.logical_xor(bw, cleared)
label_image[borders] = -1
fig, ax = plt.subplots(ncols=1, nrows=1, figsize=(6, 6))
ax.imshow(label_image)
ax.imshow(label_image, cmap='jet')
for region in regionprops(label_image, ['Area', 'BoundingBox']):