utilityfun.py
def plot_image(img, title=''):
    """Plot the supplied image and the corresponding title."""
    if len(img.shape) == 2:
        plt.imshow(img, cmap='gray')
    else:
        plt.imshow(img)
    plt.axis('off')
    plt.title(title, fontsize=20)
Plot the supplied image and the corresponding title.
Plot the supplied image and the corresponding title.
Plot the supplied image and the corresponding title .
def plot_image(img, title=''):
    if len(img.shape) == 2:
        plt.imshow(img, cmap='gray')
    else:
        plt.imshow(img)
    plt.axis('off')
    plt.title(title, fontsize=20)
def plot_image ( img , title = '' ) : if len ( img . shape ) == 2 : plt . imshow ( img , cmap = 'gray' ) else : plt . imshow ( img ) plt . axis ( 'off' ) plt . title ( title , fontsize = 20 )
Plot the supplied image and the corresponding title.
Plot the supplied image and the corresponding title .
"""Plot the supplied image and the corresponding title."""
img
title