@@ -732,12 +732,6 @@ def create_plotting_data(df, df_name):
732732
733733 # Adjust the layout to make space for the footnote
734734 plt .subplots_adjust (top = 0.15 ) # Adjust the bottom margin
735- # Add footnote
736- fig .figure .text (0.43 , 0.95 ,
737- "proportion = number of wasted children in the age group "
738- "/ total number of children in the age group" ,
739- ha = "center" , fontsize = 10 , bbox = {"facecolor" : "gray" , "alpha" : 0.3 , "pad" : 5 })
740-
741735 plt .tight_layout ()
742736 fig_output_name = (f'wasting_prevalence_per_each_age_group_{ year_calib } __' + self .datestamp )
743737 if year_calib in [2016 , 2020 ]:
@@ -785,7 +779,7 @@ def plot_model_gbd_deaths_excl_burnin_period(self):
785779 ax = plotting ['model' ].plot .bar (label = 'Model' , ax = ax , rot = 0 )
786780 ax .errorbar (x = plotting ['model' ].index , y = plotting .GBD_mean ,
787781 yerr = [plotting .GBD_lower , plotting .GBD_upper ],
788- fmt = 'o' , color = '#000' , label = "GBD" )
782+ fmt = 'o' , color = '#000' , label = "GBD (2019) " )
789783
790784 ax .set_title ('Average direct deaths per year due to severe acute malnutrition in children under 5' ,
791785 fontsize = title_fontsize - 1 )
@@ -795,10 +789,6 @@ def plot_model_gbd_deaths_excl_burnin_period(self):
795789 fig .tight_layout ()
796790 # Adjust the layout to make space for the footnote
797791 plt .subplots_adjust (bottom = 0.15 ) # Adjust the bottom margin
798- # Add footnote
799- fig .figure .text (0.5 , 0.02 ,
800- "Model output against Global Burden of Diseases (GBD) study data" ,
801- ha = "center" , fontsize = 10 , bbox = {"facecolor" : "gray" , "alpha" : 0.3 , "pad" : 5 })
802792 fig_output_name = ('model_gbd_deaths_excl_burnin__' + self .datestamp )
803793 self .save_fig__store_pdf_file (fig , fig_output_name )
804794 # plt.show()
0 commit comments