% Lab3 - Parts 1 & 2 Solution (BE-205, Winter '06-'07)
%
% Note: This script is intended to run after the Lab3.m script provided
% with the assignment.
%
% File: Lab3parts1and2.m
% Prepared by Dr. C. S. Tritt
% Last revised 2/12/07 (Version 1.0)

% Part 1 - Get the figure propeties.

% Note that the plot handles are for the plots that are children in the
% respective figures for which the properties were desired.

% 2 step approach.

fig1handle = get(handle1, 'parent');
fig1props = get(fig1handle);

% Single step (nested) approach.

fig2props = get(get(handle2, 'parent'));
fig3props = get(get(handle3, 'parent'));

% Part 2 - Change (set) the plot (not the figure) properties.

set(handle1, 'Color', 'b', 'LineWidth', 3, 'LineStyle', '-')
set(handle2, 'MarkerSize', 2, 'Marker', 'o', 'MarkerEdgeColor', 'r', ...
   'MarkerFaceColor', 'r', 'Color', 'g', 'LineWidth', 3, ...
   'LineStyle', ':')

% The 3rd part of part 2 is done manually.