clear all;
close all;

x = rand (20, 1);
y = rand (20, 1);
n = 4;
m = 4;

subplot (n, m, 1);
scatter (x, y);
title ('no opts');

subplot (n, m, 2);
scatter (x, y, 'markerfacecolor', 'r');
title ('face red');

subplot (n, m, 3);
scatter (x, y, 'markeredgecolor', 'g');
title ('edge green');

subplot (n, m, 4);
scatter (x, y, 'markerfacecolor', 'r', 'markeredgecolor', 'g');
title ('face red / edge green');

subplot (n, m, 5);
h = scatter (x, y, 'filled');
title ('filled');
printf ('filled\n');
get (h, 'markerfacecolor')
get (h, 'markeredgecolor')

subplot (n, m, 6);
h = scatter (x, y, 'filled', 'markerfacecolor', 'r');
title ('filled / face red');
printf ('filled / face red\n');
get (h, 'markerfacecolor')
get (h, 'markeredgecolor')

subplot (n, m, 7);
h = scatter (x, y, 'filled', 'markeredgecolor', 'g');
title ('filled / edge green');
printf ('filled / edge green\n');
get (h, 'markerfacecolor')
get (h, 'markeredgecolor')

subplot (n, m, 8);
h = scatter (x, y, 'filled', 'markerfacecolor', 'r', 'markeredgecolor', 'g');
title ('filled / face red / edge green');
printf ('filled / face red / edge green\n');
get (h, 'markerfacecolor')
get (h, 'markeredgecolor')

subplot (n, m, 9);
scatter (x, y, 'markerfacecolor', 'flat');
title ('face flat');

subplot (n, m, 10);
scatter (x, y, 'linewidth', 2);
title ('line width 2');

subplot (n, m, 11);
scatter (x, y, 'linewidth', 4, 'markerfacecolor', 'r');
title ('line width 4 / face red');

subplot (n, m, 12);
scatter (x, y, 40, 'filled', '0', 'markerfacecolor', 'k');
title ('size / filled / face black');

subplot (n, m, 13);
a = 1:6;
scatter (a, a, a.^2);
title ('various sizes');

subplot (n, m, 14);
scatter (x, y, '*');
title ('* marker');

subplot (n, m, 15);
scatter (x, y, '+');
title ('+ marker');

subplot (n, m, 16);
scatter (x, y, '.');
title ('. marker');

