function price_plots ( )

%*****************************************************************************80
%
%% price_plots reads price data and plots 3 prices on one display.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 May 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'price_plots:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Plot prices of bananas, gas and milk over time.\n' );
%
%  Read the (241) items of data.
%
  data = csvread ( 'price_data.csv', 2 );
%
%  Create a vector X, simply counting from 1 to 241.
%
  [ m, n ] = size ( data );

  x = linspace ( 1, m, m );
%
%  Plot 3 curves together.
%
  plot ( x, data(:,3), x, data(:,10), x, data(:,13), 'LineWidth', 3 );
  legend ( 'Bananas', 'Gas', 'Milk' );
  grid on
  xlabel ( 'Month Index', 'Fontsize', 16 );
  ylabel ( 'Price in Dollars', 'Fontsize', 16 );
  title ( 'Bananas / Gas / Milk prices, Feb 2008-Feb 2018', 'Fontsize', 16 );
%
%  Save the graphics in a file.
%
  filename = 'price_plots.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'price_plots:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

