<s> from __future__ import division <EOL> import numpy as np <EOL> from bokeh . plotting import figure , output_file , show <EOL> N = <NUM_LIT:20> <EOL> img = np . empty ( ( N , N ) , dtype = np . uint32 ) <EOL> view = img . view ( dtype = np . uint8 ) . reshape ( ( N , N , <NUM_LIT:4> ) ) <EOL> for i in range ( N ) : <EOL> for j in range ( N ) : <EOL> view [ i , j , <NUM_LIT:0> ] = int ( <NUM_LIT:255> * i / N ) <EOL> view [ i , j , <NUM_LIT:1> ] = <NUM_LIT> <EOL> view [ i , j , <NUM_LIT:2> ] = int ( <NUM_LIT:255> * j / N ) <EOL> view [ i , j , <NUM_LIT:3> ] = <NUM_LIT:255> <EOL> output_file ( "<STR_LIT>" ) <EOL> p = figure ( plot_width = <NUM_LIT> , plot_height = <NUM_LIT> , x_range = ( <NUM_LIT:0> , <NUM_LIT:10> ) , y_range = ( <NUM_LIT:0> , <NUM_LIT:10> ) ) <EOL> p . image_rgba ( image = [ img ] , x = [ <NUM_LIT:0> ] , y = [ <NUM_LIT:0> ] , dw = [ <NUM_LIT:10> ] , dh = [ <NUM_LIT:10> ] ) <EOL> show ( p ) </s>
