Skip to content

Instantly share code, notes, and snippets.

@jiqiujia
Last active July 24, 2017 13:15
Show Gist options
  • Save jiqiujia/ade1c01630306c96d77448d135b239eb to your computer and use it in GitHub Desktop.
Save jiqiujia/ade1c01630306c96d77448d135b239eb to your computer and use it in GitHub Desktop.
python plot util
#plot tiled images
fig = plt.figure(figsize=(8,8))
#adjust the white space around the figure and each subplot
plt.subplots_adjust(wspace=0.01, hspace=0.01, left=0, right=1, bottom=0, top=1)
for i in range(63):
ax = plt.subplot(8,8,i+1)
plt.imshow(imgs[i])
ax.axis('off') #no frame
#ax.get_xaxis().set_visible(False)
#ax.get_yaxis().set_visible(False)
plt.show()
plt.savefig('hdog63.jpg')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment