From: Luca Zanotti Fragonara on
Hello everybody,

I have an UI, and I have a button which open a new figure, which should contains an axis object. I've done that using copyobj:

H_FIGURE_TIME_INDIP=figure;
H_AXES_TIME_INDIP = copyobj(handles.AXES_TIME,H_FIGURE_TIME_INDIP);

The problem is that in my new figure, I have the axes object which have the same position of the old figure (the UI). Is there a way to resize the axes object?

Sorry, but I checked the help but I didn't find nothing except the resize propriety, but I didn't figured it out how does it work.
From: Steven Lord on

"Luca Zanotti Fragonara" <Luca_Zanotti(a)libero.it> wrote in message
news:hkgulm$225$1(a)fred.mathworks.com...
> Hello everybody,
>
> I have an UI, and I have a button which open a new figure, which should
> contains an axis object. I've done that using copyobj:
>
> H_FIGURE_TIME_INDIP=figure;
> H_AXES_TIME_INDIP = copyobj(handles.AXES_TIME,H_FIGURE_TIME_INDIP);
>
> The problem is that in my new figure, I have the axes object which have
> the same position of the old figure (the UI). Is there a way to resize the
> axes object?

Change the Position property of H_AXES_TIME_INDIP.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#Position

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ