Skip to content

Instantly share code, notes, and snippets.

@solalatus
Created November 29, 2017 13:33
Show Gist options
  • Save solalatus/7bd306ff8767c3540ca159adc9831cf1 to your computer and use it in GitHub Desktop.
Save solalatus/7bd306ff8767c3540ca159adc9831cf1 to your computer and use it in GitHub Desktop.
def plot_digits(data):
fig, axes = plt.subplots(10, 10, figsize=(10, 10),
subplot_kw={'xticks':[], 'yticks':[]},
gridspec_kw=dict(hspace=0.1, wspace=0.1))
for i, ax in enumerate(axes.flat):
ax.imshow(data[i],
cmap='binary', interpolation='nearest',
clim=(0, 16))
plt.show()
plot_digits(images_dataframe_no_placeholders)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment