-
Notifications
You must be signed in to change notification settings - Fork 1
/
plotFF.m
25 lines (20 loc) · 864 Bytes
/
plotFF.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function plotFF(fx1, fx2)
T = 15;
H = 1439;
x = (0:T:H) / 1440.0;
hold on
grey = [.5 .5 .5];
plot(x', fx2(1:(T/5):288, 1), '-o', 'Color', grey, 'LineWidth', 1, 'MarkerSize', 6)
plot(x', fx2(1:(T/5):288, 2), '-d', 'Color', grey, 'LineWidth', 1, 'MarkerSize', 6)
plot(x', fx2(1:(T/5):288, 3), '-^', 'Color', grey, 'LineWidth', 1, 'MarkerSize', 6)
h1 = plot(x', fx1(1:(T/5):288, 1), '-ko', 'LineWidth', 1, 'MarkerSize', 6);
h2 = plot(x', fx1(1:(T/5):288, 2), '-kd', 'LineWidth', 1, 'MarkerSize', 6);
h3 = plot(x', fx1(1:(T/5):288, 3), '-k^', 'LineWidth', 1, 'MarkerSize', 6);
pbaspect([2 1 1])
set(gca, 'XTick', .0:1.0/6.0:1.0);
datetick('x', 'HH:MM', 'keepticks');
ylim([0 max(fx1(:))*1.1])
xlabel('Time of the day (hours)')
ylabel('Activity participation by population')
legend([h1 h2 h3], {'Home', 'Work', 'Shopping'},'Location','Southwest')
legend('boxoff')