Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Rubix982/3251b8fb46265794507db88f8991e796 to your computer and use it in GitHub Desktop.
Save Rubix982/3251b8fb46265794507db88f8991e796 to your computer and use it in GitHub Desktop.
Function definition
import matplotlib
import numpy
import typing
matplotlib.pyplot.tick_params(
axis='x', # changes apply to the x-axis
which='both', # both major and minor ticks are affected
bottom=False, # ticks along the bottom edge are off
top=False, # ticks along the top edge are off
labelbottom=False
) # labels along the bottom edge are off
def plot_images(all_images: typing.List[typing.List[any]]) -> None:
for image_content_list in all_images:
fig: matplotlib.figure.Figure = matplotlib.pyplot.figure()
for index, image_data in enumerate(image_content_list):
fig.add_subplot(4, 4, index+1)
matplotlib.pyplot.imshow(image_data)
matplotlib.pyplot.axis('off')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment