Skip to content

Instantly share code, notes, and snippets.

@thetonus
Last active December 8, 2019 20:17
Show Gist options
  • Save thetonus/220bef6bf8ace70b17ef0b760ee94e53 to your computer and use it in GitHub Desktop.
Save thetonus/220bef6bf8ace70b17ef0b760ee94e53 to your computer and use it in GitHub Desktop.
%matplotlib inline
import matplotlib.pyplot as plt
def sxs(images, idxs=[]):
plt.figure(figsize=(100, 100))
assert idxs, 'define me'
for i, idx in enumerate(idxs):
plt.subplot(1, len(idxs), i+1)
plt.imshow(images[idx], cmap='gray')
plt.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment