<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> from skimage . _shared . interpolation import extend_image <EOL> img = np . zeros ( ( <NUM_LIT:16> , <NUM_LIT:16> ) ) <EOL> img [ : <NUM_LIT:8> , : <NUM_LIT:8> ] += <NUM_LIT:1> <EOL> img [ : <NUM_LIT:4> , : <NUM_LIT:4> ] += <NUM_LIT:1> <EOL> img [ : <NUM_LIT:2> , : <NUM_LIT:2> ] += <NUM_LIT:1> <EOL> img [ : <NUM_LIT:1> , : <NUM_LIT:1> ] += <NUM_LIT:2> <EOL> img [ <NUM_LIT:8> , <NUM_LIT:8> ] = <NUM_LIT:4> <EOL> modes = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> fig , axes = plt . subplots ( <NUM_LIT:2> , <NUM_LIT:3> ) <EOL> axes = axes . flatten ( ) <EOL> for n , mode in enumerate ( modes ) : <EOL> img_extended = extend_image ( img , pad = img . shape [ <NUM_LIT:0> ] , mode = mode ) <EOL> axes [ n ] . imshow ( img_extended , cmap = plt . cm . gray , interpolation = '<STR_LIT>' ) <EOL> axes [ n ] . plot ( [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] , <EOL> [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] , '<STR_LIT>' , linewidth = <NUM_LIT:0.5> ) <EOL> axes [ n ] . set_title ( mode ) <EOL> for n in range ( len ( axes ) ) : <EOL> axes [ n ] . set_axis_off ( ) <EOL> axes [ n ] . set_aspect ( '<STR_LIT>' ) <EOL> plt . tight_layout ( ) <EOL> plt . show ( ) </s>
