Files
2025-06-04 14:13:22 +08:00

21 lines
550 B
Matlab

function lg = new_legend(figh, position)
if nargin<2
position = [0.7113 0.7937 0.1980 0.1200];
end
lg = axes('Parent',figh, ...
'Units','normalized',...
'ButtonDownFcn','moveaxis', ...
'box','on',...
'CameraUpVector',[0 1 0], ...
'Color',[1 1 1], ...
'DrawMode','fast', ...
'Position', position, ...
'Tag','Axes1', ...
'XTick',[],...
'YTick',[],...
'XColor',[0 0 0], ...
'YColor',[0 0 0], ...
'ZColor',[0 0 0]);
end