function mortality_this_year_plot ()

%*****************************************************************************80
%
%% mortality_this_year_plot() plots mortality probability density function.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 November 2020
%
%  Author:
%
%    John Burkardt
%
  [ age, total_this_year, male_this_year, female_this_year ] = ...
    mortality_this_year ( );
%
%  Plot the data.
%
  figure ( );
  clf ( );
  hold ( 'on' );
    plot ( age, total_this_year, 'k-', 'linewidth', 3 );
    plot ( age, male_this_year, 'b-', 'linewidth', 3 );
    plot ( age, female_this_year, 'r-', 'linewidth', 3 );
  hold ( 'off' );
  xlabel ( '<-- Age bracket -->' );
  ylabel ( '<-- Probability of death this year -->' );
  title ( 'Probability of death this year for each age, in 2007' );
  legend ( 'Total', 'Male', 'Female' );
  grid ( 'on' );

  filename = 'mortality_this_year.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  close ( );

  return
end
