What's the field axes
in the last line of the following code?
function drawBox2D(h,object)
% draw regular objects
if ~strcmp(object.type,'DontCare')
rectangle('Position',pos,'EdgeColor',occ_col{object.occlusion+1},...
'LineWidth',3,'LineStyle',trun_style{trc},'parent',h(1).axes)
rectangle('Position',pos,'EdgeColor','b', 'parent', h(1).axes)
See the h(1).axes
in the last line? I don't know what is the h
, don't know what to pass to that function.
I speculate it to be a graph handle. So I tried
h = figure(2);
drawBox2D(h, obj);
However the handle itself is an integer so there's no field called 'axes'.
Could anyone tell me who does the field axes
belong to? And what should I pass as h into this function?