Last active
December 8, 2019 20:17
-
-
Save thetonus/220bef6bf8ace70b17ef0b760ee94e53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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