Changes

Jump to navigation Jump to search
no edit summary
Line 57: Line 57:  
Make sure you have moved current figure and axes ''before'' calling {{Codeline|text()}} to insert text:
 
Make sure you have moved current figure and axes ''before'' calling {{Codeline|text()}} to insert text:
 
  figure(2)
 
  figure(2)
  set(gcf(),'currentaxes',r);
+
get(gcf(),'children') % which two axes objects are there inside figure(2)
 +
  set(gcf(),'currentaxes',(get(gcf(),'children'))(2)) % chose the second one
 +
text(1.0,0.5,'THIS IS WHAT I WANTED')
 +
 
 
  text(1,0.5,"This is where I wanted my text");
 
  text(1,0.5,"This is where I wanted my text");
22

edits

Navigation menu