def demo_simple_grid(fig):
 grid = ImageGrid(fig, 141, nrows_ncols=(2, 2), axes_pad=0.05, label_mode='1')
 (Z, extent) = get_demo_image()
 for i in range(4):
  im = grid[i].imshow(Z, extent=extent, interpolation='nearest')
 grid.axes_llc.set_xticks([(-2), 0, 2])
 grid.axes_llc.set_yticks([(-2), 0, 2])

def demo_simple_grid ( fig ) : grid = ImageGrid ( fig , 141 , nrows_ncols = ( 2 , 2 ) , axes_pad = 0.05 , label_mode = '1' ) ( Z , extent ) = get_demo_image ( ) for i in range ( 4 ) : im = grid [ i ] . imshow ( Z , extent = extent , interpolation = 'nearest' ) grid . axes_llc . set_xticks ( [ ( - 2 ) , 0 , 2 ] ) grid . axes_llc . set_yticks ( [ ( - 2 ) , 0 , 2 ] )
a grid of 2x2 images with 0 .