/usr/share/freemat/toolbox/graph/newplot.m is in freemat-data 4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | % NEWPLOT NEWPLOT Get Handle For Next Plot
%
% Usage
%
% Returns the handle for the next plot operation. The general
% syntax for its use is
%
% h = newplot
%
% This routine checks the nextplot properties of the current
% figure and axes to see if they are set to replace or not. If
% the figures nextplot property is set to replace, the current
% figure is cleared. If the axes nextplot property is set to
% replace then the axes are cleared for the next operation.
% Copyright (c) 2002-2006 Samit Basu
% Licensed under the GPL
function h = newplot
fig = gcf;
fg_mode = get(fig,'nextplot');
if (strcmp(fg_mode,'replace'))
clf;
end
ax = gca;
ax_mode = get(ax,'nextplot');
if (strcmp(ax_mode,'replace'))
cla;
end
h = gca;
|