(data, title, output)
Draw a map with the enterprises.

    Args:
        data: Data file outputted from `get_data`.
        title: A title for the plot.
        output: Name of the file to save.
Draw a map with the enterprises.
Draw a map with the enterprises .
def draw_map(data, title, output):
    """
    Draw a map with the enterprises.

    Args:
        data: Data file outputted from `get_data`.
        title: A title for the plot.
        output: Name of the file to save.
    """
    import cartopy.crs as ccrs

    coords = get_lat_lon(data).values()

    lat = [coord[0] for coord in coords]
    lon = [coord[1] for coord in coords]

    ax = plt.axes(projection=ccrs.PlateCarree())
    ax.stock_img()
    ax.coastlines()
    ax.scatter(lon, lat, marker='o', s=50, alpha=0.8)
    ax.set_extent([-75, -20, -35, 5], crs=ccrs.PlateCarree())
    ax.set_title(title)
    plt.savefig(output)
def draw_map ( data , title , output ) : import cartopy . crs as ccrs coords = get_lat_lon ( data ) . values ( ) lat = [ coord [ 0 ] for coord in coords ] lon = [ coord [ 1 ] for coord in coords ] ax = plt . axes ( projection = ccrs . PlateCarree ( ) ) ax . stock_img ( ) ax . coastlines ( ) ax . scatter ( lon , lat , marker = 'o' , s = 50 , alpha = 0.8 ) ax . set_extent ( [ - 75 , - 20 , - 35 , 5 ] , crs = ccrs . PlateCarree ( ) ) ax . set_title ( title ) plt . savefig ( output )