original_docstring: Visualize vornoi results on the Tuscany map with municipalities
docstring: Visualize vornoi results on the Tuscany map with municipalities
docstring_tokens: Visualize vornoi results on the Tuscany map with municipalities
code: def visualize_vornois(voronoi_geo_in_tusc, file_name, pathout, municipalities, crs):
      """Visualize vornoi results on the Tuscany map with municipalities"""
  
      fig, ax = plt.subplots(figsize=(20, 15), frameon=False)
      ax.axis('off')
  
      df_mun_tusc = read_shapefiles_in(True, path_shapefiles, municipalities, crs)
      df_mun_tusc.plot(ax=ax, edgecolor='black', color='white', alpha=0.3, figsize=(20, 15))
      ax=voronoi_geo_in_tusc.plot(ax=ax, edgecolor='blue', color='white', figsize=(20, 15), alpha=0.4)
  
      with open(pathout+file_name, 'wb') as outfile:
          fig.canvas.print_png(outfile)
code_tokens: def visualize_vornois ( voronoi_geo_in_tusc , file_name , pathout , municipalities , crs ) : fig , ax = plt . subplots ( figsize = ( 20 , 15 ) , frameon = False ) ax . axis ( 'off' ) df_mun_tusc = read_shapefiles_in ( True , path_shapefiles , municipalities , crs ) df_mun_tusc . plot ( ax = ax , edgecolor = 'black' , color = 'white' , alpha = 0.3 , figsize = ( 20 , 15 ) ) ax = voronoi_geo_in_tusc . plot ( ax = ax , edgecolor = 'blue' , color = 'white' , figsize = ( 20 , 15 ) , alpha = 0.4 ) with open ( pathout + file_name , 'wb' ) as outfile : fig . canvas . print_png ( outfile )
short_docstring: Visualize vornoi results on the Tuscany map with municipalities
short_docstring_tokens: Visualize vornoi results on the Tuscany map with municipalities
comment: """Visualize vornoi results on the Tuscany map with municipalities"""