commit
375f65c213
|
@ -4499,8 +4499,8 @@ Computing the stochastic solution
|
||||||
graph_format = ( FORMAT, FORMAT... )
|
graph_format = ( FORMAT, FORMAT... )
|
||||||
|
|
||||||
Specify the file format(s) for graphs saved to disk. Possible
|
Specify the file format(s) for graphs saved to disk. Possible
|
||||||
values are ``eps`` (the default), ``pdf``, ``fig`` and ``none``
|
values are ``eps`` (the default), ``pdf``, ``fig`` and ``none``.
|
||||||
(under Octave, ``fig`` is unavailable). If the
|
Under Octave, ``fig`` will use Octave’s ``ofig`` format. If the
|
||||||
file format is set equal to ``none``, the graphs are displayed
|
file format is set equal to ``none``, the graphs are displayed
|
||||||
but not saved to the disk.
|
but not saved to the disk.
|
||||||
|
|
||||||
|
|
|
@ -52,17 +52,12 @@ if any(strcmp('pdf',cellstr(graph_format)))
|
||||||
print(h,'-dpdf',[fname,'.pdf'])
|
print(h,'-dpdf',[fname,'.pdf'])
|
||||||
end
|
end
|
||||||
if any(strcmp('fig',cellstr(graph_format)))
|
if any(strcmp('fig',cellstr(graph_format)))
|
||||||
if isoctave
|
|
||||||
error('Octave cannot create fig files!')
|
|
||||||
else
|
|
||||||
if nodisplay
|
if nodisplay
|
||||||
% THE FOLLOWING LINES COULD BE USED IF BUGS/PROBLEMS ARE REPORTED USING LINE 60
|
|
||||||
% set(h,'Units','Normalized')
|
|
||||||
% mypos=get(h,'Position');
|
|
||||||
% set(h,'Position',[-1 -1 mypos(3:4)])
|
|
||||||
% set(h, 'Visible','on');
|
|
||||||
set(h,'CreateFcn','set(gcf, ''Visible'',''on'')') ;
|
set(h,'CreateFcn','set(gcf, ''Visible'',''on'')') ;
|
||||||
end
|
end
|
||||||
|
if isoctave
|
||||||
|
saveas(h,[fname '.ofig']);
|
||||||
|
else
|
||||||
saveas(h,[fname '.fig']);
|
saveas(h,[fname '.fig']);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue