%
% This is a script to create a simple example graphic and another version
% of it using set_plot.
%
% Version information:
%   - Last run on December 31, 2011 using version 0.8.2 of set_plot
%

% Open a new figure.
figure

% Plot the example.
contour(peaks(50))

% Save the resulting figure as a PNG and PDF.
saveas(gcf, 'peaks-plain.png')
saveas(gcf, 'peaks-plain.pdf')

% Repeat.
figure
contour(peaks(50))

% Now apply the default behavior of set_plot.
set_plot(gcf, 'FigureStyle', 'journal')

% Save the result.
saveas(gcf, 'peaks-journal.png')
saveas(gcf, 'peaks-journal.pdf')

% Repeat one more time.
figure
contour(peaks(50))

% Make a bigger figure.
set_plot(gcf, 'FigureStyle', 'fancy', 'Width', 6)

% Change the colormap
set_colormap jet

% Save the last result.
saveas(gcf, 'peaks-fancy.png')
saveas(gcf, 'peaks-fancy.pdf')