diff --git a/matlab/reports/@graph/writeGraphFile.m b/matlab/reports/@graph/writeGraphFile.m
index a0d2273a4485d112a332d919a54aa8a36d28bf6b..7a1fc47a0aa145bc4a11c22dc11e8beeee0f4216 100644
--- a/matlab/reports/@graph/writeGraphFile.m
+++ b/matlab/reports/@graph/writeGraphFile.m
@@ -204,7 +204,7 @@ if ~isempty(o.shade)
     end
 end
 
-fprintf(fid, '\\end{axis}\n\\end{tikzpicture}\n');
+fprintf(fid, '\\end{axis}\n\\end{tikzpicture}%%');
 if fclose(fid) == -1
     error('@graph.writeGraphFile: closing %s\n', o.filename);
 end