Skip to content
Snippets Groups Projects
Commit 84f0d6c7 authored by Marco Ratto's avatar Marco Ratto
Browse files

bug fix for octave under windows and hybrid unix-windows clusters

parent 2bc167fc
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,13 @@ function dyn_saveas(h,fname,DynareOptions)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if any(strcmp('eps',cellstr(DynareOptions.graph_format)))
if exist('OCTAVE_VERSION')
fname = strrep(fname,'/',filesep);
fname = strrep(fname,'\',filesep);
if DynareOptions.nodisplay && ispc,
set(h, 'Visible','on');
end
end
print(h,'-depsc2',[fname,'.eps'])
end
if any(strcmp('pdf',cellstr(DynareOptions.graph_format)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment