From 661d900f887c1d30428f36571aee92ab3efb7cd4 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 13 Feb 2014 15:22:38 +0100
Subject: [PATCH] reporting: set up graph shade opacity

---
 matlab/reports/@graph/writeGraphFile.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/matlab/reports/@graph/writeGraphFile.m b/matlab/reports/@graph/writeGraphFile.m
index 40463c4ac2..e0d415a9dc 100644
--- a/matlab/reports/@graph/writeGraphFile.m
+++ b/matlab/reports/@graph/writeGraphFile.m
@@ -142,8 +142,9 @@ if ~isempty(o.shade)
                         date2string(o.shade(1)) ' or ' date2string(o.shade(end)) ' is not in the date ' ...
                         'range of data selected.']);
     fprintf(fid, ['%%shading\n\\addplot[area legend,solid,fill=%s,' ...
-                  'opacity=.2,draw=black,forget plot]\ntable[row sep=crcr]{\nx y\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n};\n'], ...
-            o.shadeColor, x1, ymin, x1, ymax, x2, ymax, x2, ymin);
+                  'opacity=%f,draw=black,forget plot]\ntable[row sep=crcr]{\nx ' ...
+                  'y\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n%d %d\\\\\n};\n'], ...
+            o.shadeColor, o.shadeOpacity, x1, ymin, x1, ymax, x2, ymax, x2, ymin);
 end
 
 for i=1:ne
-- 
GitLab