close all
cf = get (groot, 'currentfigure')
cf =
0×0 empty GraphicsPlaceholder array.
hf = figure ('units', 'pixels', ...
'position', [250, 500, 400, 100], ...
'numbertitle', 'off', ...
'menubar', 'none', 'toolbar', 'none', ...
'integerhandle', 'off', ...
'handlevisibility', 'callback', ...
'tag', 'waitbar');
cf2 = get (groot, 'currentfigure')
cf2 =
0×0 empty GraphicsPlaceholder array.
set (groot, 'currentfigure', [])
ax = axes ('parent', hf, ...
'xtick', [], 'ytick', [], ...
'xlim', [0, 1], 'ylim', [0, 1], ...
'position', [0.1, 0.3, 0.8, 0.2])
ax =
Axes with properties:
XLim: [0 1]
YLim: [0 1]
XScale: 'linear'
YScale: 'linear'
GridLineStyle: '-'
Position: [0.1000 0.3000 0.8000 0.2000]
Units: 'normalized'
Show all properties
cf3 = get (groot, 'currentfigure')
cf3 =
0×0 empty GraphicsPlaceholder array.
get (hf, 'currentaxes')
ans =
Axes with properties:
XLim: [0 1]
YLim: [0 1]
XScale: 'linear'
YScale: 'linear'
GridLineStyle: '-'
Position: [0.1000 0.3000 0.8000 0.2000]
Units: 'normalized'
Show all properties
diary off