Created
August 15, 2022 12:36
-
-
Save Rubix982/3251b8fb46265794507db88f8991e796 to your computer and use it in GitHub Desktop.
Function definition
This file contains 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
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