Skip to content

Instantly share code, notes, and snippets.

@vineethm1627
Created September 22, 2020 05:10
Show Gist options
  • Save vineethm1627/62561e254f855a84f1074175553b5796 to your computer and use it in GitHub Desktop.
Save vineethm1627/62561e254f855a84f1074175553b5796 to your computer and use it in GitHub Desktop.
images = [img, edge_roberts, edge_prewitt, edge_sobel]
names = ["input", "roberts", "prewitt", "sobel"]
fig = plt.figure(figsize = (8, 8))
for i in range(4):
fig.add_subplot(2, 2, i + 1)
plt.title(names[i])
plt.imshow(images[i], cmap = 'gray')
@vineethm1627
Copy link
Author

Simplest way to plot

plt.figure(figsize = (8, 8))

for i in range(4):
plt.subplot(2, 2, i + 1)
plt.imshow(images[i])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment