summaryrefslogtreecommitdiff
path: root/graph.m
diff options
context:
space:
mode:
Diffstat (limited to 'graph.m')
-rw-r--r--graph.m31
1 files changed, 29 insertions, 2 deletions
diff --git a/graph.m b/graph.m
index 68f69ac..5d7bd7c 100644
--- a/graph.m
+++ b/graph.m
@@ -1,8 +1,8 @@
-tangocolors
+tangocolors;
colormap(tangocolors_middle);
+% optimization graph
percent = round(local_min_count / sum(local_min_count) * 100);
-
labels = {};
p = 0;
@@ -18,3 +18,30 @@ end
pie(local_min_count, labels);
axis('off');
print('doc/image/opt_pred_pie.svg', '-dsvg', '-F:14');
+
+% mean graph
+plot(pred_list{1});
+xlabel('Tage');
+ylabel('Quantitaet');
+print('doc/image/mean_pred.svg', '-dsvg', '-F:14');
+
+% seven day plots
+X = [0 0 7 7 14 14 21 21 28 28 35 35 42 42];
+Y = [0 1 1 0 0 1 1 0 0 1 1 0 0 1];
+
+%plot(X + 3, Y * 3800, '-k', 'linewidth', 1);
+plot(sum(q'), '-ob;(Summe) Original;', 'linewidth', 2);
+hold on;
+ylim([0 4000]);
+xlim([0 42]);
+xlabel('Tage');
+ylabel('Quantitaet');
+print('doc/image/sevenday_window.svg', '-dsvg')
+
+plot(29:42, sum((pred_list{5})'), '-or;(Summe) Vorhersage;', 'linewidth', 2);
+%ylim([0 4000]);
+%xlim([0 14]);
+xlabel('Tage');
+ylabel('Quantitaet');
+print('doc/image/sevenday_pred.svg', '-dsvg')
+hold off;