Send plot from one axes to another
14 次查看(过去 30 天)
显示 更早的评论
Is it possible to send a plot from one axes to another in order to see it bigger? I'm able to send the axes to a new figure, as follows:
if true
axes(handles.axes_cam1)
fig=figure;ax=axes;clf;
new_handle=copyobj(handles.axes_cam1,fig);
set(gca,'ActivePositionProperty','outerposition')
set(gca,'Units','normalized')
set(gca,'OuterPosition',[0 0 1 1])
set(gca,'position',[0.1300 0.1100 0.7750 0.8150])
end
But what I want is to send it to other axes that already exist (handles.axes_graficos) and I'm not able with copyobj maybe because I'm doing something wrong.
The target is to avoid repeating the code in the other axes.
2 个评论
Jan
2018-2-20
编辑:Jan
2018-2-20
Maybe you have a bug in your code using copyobj to copy the line object. Give us a chance to find it by posting the failing code, not some other code which runs successfully. Please explain "I'm not able with copyobj" with details: Do you get an error or does the result differ from your expectation?
What does "repeating the code in the other axes" mean? Code appears in the program text, not in an axes.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!