Last active
July 24, 2017 13:15
-
-
Save jiqiujia/ade1c01630306c96d77448d135b239eb to your computer and use it in GitHub Desktop.
python plot util
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
#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