<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> from shapely . geometry import Point <EOL> from geopandas import GeoSeries , GeoDataFrame <EOL> np . random . seed ( <NUM_LIT:1> ) <EOL> DPI = <NUM_LIT:100> <EOL> boros = GeoDataFrame . from_file ( '<STR_LIT>' ) <EOL> boros . set_index ( '<STR_LIT>' , inplace = True ) <EOL> boros . sort ( ) <EOL> boros . plot ( ) <EOL> plt . xticks ( rotation = <NUM_LIT> ) <EOL> plt . savefig ( '<STR_LIT>' , dpi = DPI , bbox_inches = '<STR_LIT>' ) <EOL> boros . geometry . convex_hull . plot ( ) <EOL> plt . xticks ( rotation = <NUM_LIT> ) <EOL> plt . savefig ( '<STR_LIT>' , dpi = DPI , bbox_inches = '<STR_LIT>' ) <EOL> N = <NUM_LIT> <EOL> R = <NUM_LIT> <EOL> xmin , xmax = plt . gca ( ) . get_xlim ( ) <EOL> ymin , ymax = plt . gca ( ) . get_ylim ( ) <EOL> xc = ( xmax - xmin ) * np . random . random ( N ) + xmin <EOL> yc = ( ymax - ymin ) * np . random . random ( N ) + ymin <EOL> pts = GeoSeries ( [ Point ( x , y ) for x , y in zip ( xc , yc ) ] ) <EOL> mp = pts . buffer ( R ) . unary_union <EOL> boros_with_holes = boros . geometry - mp <EOL> boros_with_holes . plot ( ) <EOL> plt . xticks ( rotation = <NUM_LIT> ) <EOL> plt . savefig ( '<STR_LIT>' , dpi = DPI , bbox_inches = '<STR_LIT>' ) <EOL> plt . show ( ) <EOL> holes = boros . geometry & mp <EOL> holes . plot ( ) <EOL> plt . xticks ( rotation = <NUM_LIT> ) <EOL> plt . savefig ( '<STR_LIT>' , dpi = DPI , bbox_inches = '<STR_LIT>' ) <EOL> plt . show ( ) </s>
