summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graph.m20
-rw-r--r--tangocolors.m36
2 files changed, 56 insertions, 0 deletions
diff --git a/graph.m b/graph.m
new file mode 100644
index 0000000..34bc1f2
--- /dev/null
+++ b/graph.m
@@ -0,0 +1,20 @@
+tangocolors
+colormap(tangocolors_middle);
+
+percent = round(local_min_count / sum(local_min_count) * 100);
+
+labels = {};
+p = 0;
+
+for i = 1:size(local_min_count, 2)
+ if (p > 50)
+ labels{i} = sprintf('%d%% %s', percent(i),pred_methods(i).name);
+ else
+ labels{i} = sprintf('%s %d%%', pred_methods(i).name,percent(i));
+ end
+ p += percent(i);
+end
+
+pie(local_min_count, labels);
+axis('off');
+print('doc/image/opt_pred_pie.pdf', '-dpdf');
diff --git a/tangocolors.m b/tangocolors.m
new file mode 100644
index 0000000..2d3fc67
--- /dev/null
+++ b/tangocolors.m
@@ -0,0 +1,36 @@
+tangocolors_light= [
+
+ 0xfc 0xe9 0x4f;
+ 0xfc 0xaf 0x3e;
+ 0xe9 0xb9 0x6e;
+ 0x8a 0xe2 0x34;
+ 0x72 0x9f 0xcf;
+ 0xad 0x7f 0xa8;
+ 0xef 0x29 0x29;
+ 0xee 0xee 0xec;
+ 0x88 0x8a 0x85;
+] / 255;
+
+tangocolors_middle = [
+ 0xed 0xd4 0x00;
+ 0xf5 0x79 0x00;
+ 0xc1 0x7d 0x11;
+ 0x73 0xd2 0x16;
+ 0x34 0x65 0xa4;
+ 0x75 0x50 0x7b;
+ 0xcc 0x00 0x00;
+ 0xd3 0xd7 0xcf;
+ 0x55 0x57 0x53;
+] / 255;
+
+tangocolors_dark = [
+ 0xc4 0xa0 0x00;
+ 0xce 0x5c 0x00;
+ 0x8f 0x59 0x02;
+ 0x4e 0x9a 0x06;
+ 0x20 0x4a 0x87;
+ 0x5c 0x35 0x66;
+ 0xa4 0x00 0x00;
+ 0xba 0xbd 0xb6;
+ 0x2e 0x34 0x36;
+] / 255;