% This script creates all of the data plots necessary for our report.

clear comp_measurements spectro_measurements fill_order engines printers;
clear simPrintColors bestspec;
addpath c:\project;
cd c:\project\images;

% LOAD THE MEASUREMENTS
% comp_measurements = monitor readings and color values
% spectro_measurements = spectroradiometer measurements of our printouts
% everything else is extra variables.
%========================================================================
[comp_measurements,spectro_measurements,fill_order,engines,printers,...
      simPrintColors,bestspec] = LoadMeasurements;

% PLOT MONITOR DATA
% plots gamuts with and without printer color simulation
% and before and after conversion between RGB and CMYK
%========================================================
MakeMonitorPlots(comp_measurements,fill_order,engines,printers,...
   simPrintColors,bestspec);

% PLOT SPECTRORADIOMETER DATA
% plots gamuts of the printouts for each of Adobe color settings
% along with the Monitor data for the same settings
%=================================================================
MakeSpectroPlots(comp_measurements,spectro_measurements,fill_order,engines,...
   printers,simPrintColors,bestspec),

% PLOT Lab CALCULATIONS and DISTANCES
% plots the delta E distances between measured and simulated RGBCMYK
% for each printer,engine, and other setting.
% It returns a measure of overall accuracy of the simulated colors on the monitor
% to the actual colors of the printout measured with the spectroradiometer.
%=================================================================================
difference_measure = MakeLabPlots(comp_measurements,spectro_measurements,...
   engines,printers);