<s> from matplotlib import pyplot <EOL> from shapely . geometry import MultiPoint <EOL> from descartes . patch import PolygonPatch <EOL> from figures import SIZE <EOL> fig = pyplot . figure ( <NUM_LIT:1> , figsize = SIZE , dpi = <NUM_LIT> ) <EOL> fig . set_frameon ( True ) <EOL> ax = fig . add_subplot ( <NUM_LIT> ) <EOL> points2 = MultiPoint ( [ ( <NUM_LIT:0> , <NUM_LIT:0> ) , ( <NUM_LIT:2> , <NUM_LIT:2> ) ] ) <EOL> for p in points2 : <EOL> ax . plot ( p . x , p . y , '<STR_LIT:o>' , color = '<STR_LIT>' ) <EOL> hull2 = points2 . convex_hull <EOL> x , y = hull2 . xy <EOL> ax . plot ( x , y , color = '<STR_LIT>' , linewidth = <NUM_LIT:3> , alpha = <NUM_LIT:0.5> , zorder = <NUM_LIT:2> ) <EOL> ax . set_title ( '<STR_LIT>' ) <EOL> xrange = [ - <NUM_LIT:1> , <NUM_LIT:4> ] <EOL> yrange = [ - <NUM_LIT:1> , <NUM_LIT:3> ] <EOL> ax . set_xlim ( * xrange ) <EOL> ax . set_xticks ( range ( * xrange ) + [ xrange [ - <NUM_LIT:1> ] ] ) <EOL> ax . set_ylim ( * yrange ) <EOL> ax . set_yticks ( range ( * yrange ) + [ yrange [ - <NUM_LIT:1> ] ] ) <EOL> ax . set_aspect ( <NUM_LIT:1> ) <EOL> ax = fig . add_subplot ( <NUM_LIT> ) <EOL> points1 = MultiPoint ( [ ( <NUM_LIT:0> , <NUM_LIT:0> ) , ( <NUM_LIT:1> , <NUM_LIT:1> ) , ( <NUM_LIT:0> , <NUM_LIT:2> ) , ( <NUM_LIT:2> , <NUM_LIT:2> ) , ( <NUM_LIT:3> , <NUM_LIT:1> ) , ( <NUM_LIT:1> , <NUM_LIT:0> ) ] ) <EOL> for p in points1 : <EOL> ax . plot ( p . x , p . y , '<STR_LIT:o>' , color = '<STR_LIT>' ) <EOL> hull1 = points1 . convex_hull <EOL> patch1 = PolygonPatch ( hull1 , facecolor = '<STR_LIT>' , edgecolor = '<STR_LIT>' , alpha = <NUM_LIT:0.5> , zorder = <NUM_LIT:2> ) <EOL> ax . add_patch ( patch1 ) <EOL> ax . set_title ( '<STR_LIT>' ) <EOL> xrange = [ - <NUM_LIT:1> , <NUM_LIT:4> ] <EOL> yrange = [ - <NUM_LIT:1> , <NUM_LIT:3> ] <EOL> ax . set_xlim ( * xrange ) <EOL> ax . set_xticks ( range ( * xrange ) + [ xrange [ - <NUM_LIT:1> ] ] ) <EOL> ax . set_ylim ( * yrange ) <EOL> ax . set_yticks ( range ( * yrange ) + [ yrange [ - <NUM_LIT:1> ] ] ) <EOL> ax . set_aspect ( <NUM_LIT:1> ) <EOL> pyplot . show ( ) </s>
