title: Accesing the figure inside the figure to add new plot in MATLAB
body: <p>I have a complicated figure that is composed of 3-4 plots. Those plots are made in outside function; and I use that function in my own script.</p>
  
  <p>The thing is that I want to add one more plot to the existing one. When I try to do that by using "hold on", it adds itself to the wrong place, not into the right plot.</p>
  
  <p>Also, earlier I wanted to change color, thickness and other properties of this second plot - and then I had opened the first function and change those properties there, but for now it doesn't seems to be the proper way to handle this problem. The function can be overwritten when updating MATLAB toolbox. That's why I want to find a solution to handle all of these changes inside my own function. </p>
  
  <p><a href="https://i.stack.imgur.com/HdaPw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HdaPw.png" alt="Here is the example of my problem"></a></p>
  
  <p>If you have any ideas, thanks for sharing!
  Mary</p>