Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Created December 19, 2018 17:58
Show Gist options
  • Select an option

  • Save RyotaBannai/5ab30c48306144c0848b0ad3e3115ee1 to your computer and use it in GitHub Desktop.

Select an option

Save RyotaBannai/5ab30c48306144c0848b0ad3e3115ee1 to your computer and use it in GitHub Desktop.
_, axes = plt.subplots(2, 8, figsize=(8, 2),
subplot_kw={'xticks':[], 'yticks':[]},
gridspec_kw=dict(hspace=0.1, wspace=0.1))
for i, ax in enumerate(axes.flat):
ax.imshow(digits.data[i].reshape(8, 8),
cmap='binary', interpolation='nearest', clim=(0, 16))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment