def immunes_percentage(save_image=False, show=False):
    '\n    Computes and plots relations between the population of a place and people that took the second shot.\n    '
    for (area_code, region_data) in benchmark_dict.items():
        plt.plot(region_data['data_somministrazione'], region_data['seconda_dose_totale_storico_su_pop'], label=area_names_dict[area_code])
    plt.plot(italy_df['data_somministrazione'], italy_df['seconda_dose_totale_storico_su_pop'], alpha=0.5, linestyle=':', label='Italia')
    plt.title('Percentuale popolazione immunizzata,\nconfronto tra le regioni del benchmark\n')
    plt.gca().yaxis.set_major_formatter(mtick.PercentFormatter(xmax=1))
    plt.gca().xaxis.set_major_locator(MonthLocator())
    plt.gca().xaxis.set_minor_locator(MonthLocator(bymonthday=15))
    plt.gca().xaxis.set_major_formatter(utils.std_date_formatter)
    plt.gca().xaxis.set_minor_formatter(utils.std_date_formatter)
    plt.gcf().autofmt_xdate(which='both')
    plt.grid(True, which='both', axis='both')
    plt.legend(loc='upper left')
    if save_image:
        plt.savefig('./charts/vaccines/immunizzati.png', dpi=300, transparent=True, bbox_inches='tight')
    if show:
        plt.show()
    plt.close()
Computes and plots relations between the population of a place and people that took the second shot.
def immunes_percentage(save_image=False, show=False):
    '\n    \n    '
    for (area_code, region_data) in benchmark_dict.items():
        plt.plot(region_data['data_somministrazione'], region_data['seconda_dose_totale_storico_su_pop'], label=area_names_dict[area_code])
    plt.plot(italy_df['data_somministrazione'], italy_df['seconda_dose_totale_storico_su_pop'], alpha=0.5, linestyle=':', label='Italia')
    plt.title('Percentuale popolazione immunizzata,\nconfronto tra le regioni del benchmark\n')
    plt.gca().yaxis.set_major_formatter(mtick.PercentFormatter(xmax=1))
    plt.gca().xaxis.set_major_locator(MonthLocator())
    plt.gca().xaxis.set_minor_locator(MonthLocator(bymonthday=15))
    plt.gca().xaxis.set_major_formatter(utils.std_date_formatter)
    plt.gca().xaxis.set_minor_formatter(utils.std_date_formatter)
    plt.gcf().autofmt_xdate(which='both')
    plt.grid(True, which='both', axis='both')
    plt.legend(loc='upper left')
    if save_image:
        plt.savefig('./charts/vaccines/immunizzati.png', dpi=300, transparent=True, bbox_inches='tight')
    if show:
        plt.show()
    plt.close()