plot axes on a different figure window
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
I have one plot in one figure and 5 plot buttons in other figure. The way the program works is that each time i push a plot button it would create a plot with 5 different axes. I got the program to work however I would have to use axes(handles.Axes1) and that did not work for me since the plot figure was always up and I was unable to select any other figures. The way I fixed that is by using
set(hObject,'CurrentAxes',handles.Axes1);
hold(handles.Axes1,'on');
cah = get(hObject,'CurrentAxes');
to get the axes or the handle. But when I try to create the new axes it creates the new axes on the second figure or the button figure.
h_ax = axes('position',[xpos, cpos(2), cpos(3)*.01666, cpos(4)]);
Is there a way to have the axes created on the first figure(plots) instead of the second figure?
Thank you
댓글 수: 3
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!