reporting: bug fix: only assign a tempname to figname when one doesn't already exist

time-shift
Houtan Bastani 2013-05-13 18:19:16 +02:00
parent 9fa99b5337
commit 788b7e3d11
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ if ~isempty(o.ylabel)
end
drawnow;
o.figname = [tempname '.tex'];
if isempty(o.figname)
o.figname = [tempname '.tex'];
end
disp(' converting to tex....');
if exist('OCTAVE_VERSION')
print(o.figname, '-dtikz');