Accesing the figure inside the figure to add new plot in MATLAB -


i have complicated figure composed of 3-4 plots. plots made in outside function; , use function in own script.

the thing want add 1 more plot existing one. when try using "hold on", adds wrong place, not right plot.

also, earlier wanted change color, thickness , other properties of second plot - , had opened first function , change properties there, doesn't seems proper way handle problem. function can overwritten when updating matlab toolbox. that's why want find solution handle of these changes inside own function.

here example of problem

if have ideas, sharing! mary

your solution relating call:

 hallaxes = findobj(gcf,'type','axes'); 

this return handles axes in current figure. 1 of handles, e.g. hallaxes(1) bottom plot (it same, haven't shown code can't tell one).

then can plot selecting axes:

plot(hallaxes(1),myx,myy); 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -