Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Created December 19, 2018 18:10
Show Gist options
  • Save RyotaBannai/575ff89283f9bf6bec3c29c625434397 to your computer and use it in GitHub Desktop.
Save RyotaBannai/575ff89283f9bf6bec3c29c625434397 to your computer and use it in GitHub Desktop.
fig, ax = plt.subplots(2, 5, figsize=(5, 2.5),
subplot_kw={'xticks':[], 'yticks':[]},
gridspec_kw=dict(hspace=0.1, wspace=0.1))
for i in range(5, 10):
ax[0, i-5].imshow(faces.data[i].reshape(62,47), cmap='binary_r')
ax[1, i-5].imshow(X[i].reshape(62,47), cmap='binary_r')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment