diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m
index 9874ca78f92b4703d660501b1832934abaa0f8d2..605b0e9243274792030d3ff7b7b82ba0bacb38b8 100644
--- a/matlab/reporting/@graph/createGraph.m
+++ b/matlab/reporting/@graph/createGraph.m
@@ -109,7 +109,7 @@ if ~isempty(o.title)
 end
 drawnow;
 
-o.figname = ['figure-' num2str(cputime) '.tex'];
+o.figname = [tempname '.tex'];
 disp('  converting to tex....');
 matlab2tikz('filename', o.figname, ...
             'showInfo', false, ...