/usr/lib/scilab-plotlib/macros/_hidden.sci is in scilab-plotlib 0.42-1.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | function _hidden(varargin)
[lhs,rhs]=argn(0);
win=get('current_figure');
ax=get('current_axes');
if rhs==1
if varargin(1)=='on'
cmd="on";
elseif varargin(1)=='off'
cmd="off";
else
_error('hold : unknown hidden state (must be ''on'' or ''off'')')
end
elseif rhs==0
cmd="toggle";
end
IMD=win.immediate_drawing;
win.immediate_drawing="off";
h=get(ax,'children');
for i=1:size(h,1);
_done=%f;
if or(h(i).user_data.typeOfPlot==["mesh";"trimesh"])
if cmd=="on" | cmd=="toggle"
if h(i).user_data.FaceColor=="none"
h(i).user_data.FaceColor="default";
h(i).color_mode=findColorIndex(win,ax.user_data.Color);
_done=%t;
end
end
if cmd=="off" | (cmd=="toggle" & ~_done)
if h(i).user_data.FaceColor=="default"
h(i).user_data.FaceColor="none";
h(i).color_mode=0;
end
end
end
end
win.immediate_drawing=IMD;
endfunction
|