<s> from shapely . geometry import MultiPoint <EOL> from shapely . ops import triangulate <EOL> from matplotlib import pyplot <EOL> from descartes . patch import PolygonPatch <EOL> from figures import SIZE , BLUE , GRAY <EOL> points = 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> triangles = triangulate ( points ) <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> for triangle in triangles : <EOL> patch = PolygonPatch ( triangle , facecolor = BLUE , edgecolor = BLUE , alpha = <NUM_LIT:0.5> , zorder = <NUM_LIT:2> ) <EOL> ax . add_patch ( patch ) <EOL> for point in points : <EOL> pyplot . plot ( point . x , point . y , '<STR_LIT:o>' , color = GRAY ) <EOL> pyplot . xlim ( - <NUM_LIT:0.5> , <NUM_LIT> ) <EOL> pyplot . ylim ( - <NUM_LIT:0.5> , <NUM_LIT> ) <EOL> pyplot . show ( ) </s>
