<s> import numpy as np <EOL> from bokeh . document import Document <EOL> from bokeh . models import ColumnDataSource , DataRange1d , Plot , LinearAxis , Grid <EOL> from bokeh . models . glyphs import Quad <EOL> from bokeh . plotting import show <EOL> N = <NUM_LIT:9> <EOL> x = np . linspace ( - <NUM_LIT:2> , <NUM_LIT:2> , N ) <EOL> y = x ** <NUM_LIT:2> <EOL> source = ColumnDataSource ( dict ( <EOL> left = x , <EOL> top = y , <EOL> right = x - x ** <NUM_LIT:3> / <NUM_LIT:10> + <NUM_LIT> , <EOL> bottom = y - x ** <NUM_LIT:2> / <NUM_LIT:10> + <NUM_LIT:0.5> , <EOL> ) <EOL> ) <EOL> xdr = DataRange1d ( ) <EOL> ydr = DataRange1d ( ) <EOL> plot = Plot ( <EOL> title = None , x_range = xdr , y_range = ydr , plot_width = <NUM_LIT> , plot_height = <NUM_LIT> , <EOL> h_symmetry = False , v_symmetry = False , min_border = <NUM_LIT:0> , toolbar_location = None ) <EOL> glyph = Quad ( left = "<STR_LIT:left>" , right = "<STR_LIT:right>" , top = "<STR_LIT>" , bottom = "<STR_LIT>" , fill_color = "<STR_LIT>" ) <EOL> plot . add_glyph ( source , glyph ) <EOL> xaxis = LinearAxis ( ) <EOL> plot . add_layout ( xaxis , '<STR_LIT>' ) <EOL> yaxis = LinearAxis ( ) <EOL> plot . add_layout ( yaxis , '<STR_LIT:left>' ) <EOL> plot . add_layout ( Grid ( dimension = <NUM_LIT:0> , ticker = xaxis . ticker ) ) <EOL> plot . add_layout ( Grid ( dimension = <NUM_LIT:1> , ticker = yaxis . ticker ) ) <EOL> doc = Document ( ) <EOL> doc . add_root ( plot ) <EOL> show ( plot ) </s>
