如何将相应情节的传说以及本身复制到另一个情节中?
我正在处理以下代码,将保存的图将其复制到另一个代码中。
fig1 = openfig('ABC.fig');
fig2 = openfig('DEF.fig', 'invisible');
copyobj(fig2.Children.Children, fig1.Children);
只要我不使用fig2
中的传说,我就会有效,然后我会获得一个错误消息,用于在copybj
中使用过多的输入参数。在文档中,我了解到copyObj
没有复制传奇的上下文菜单,因此我也要求您在复制传说时提供帮助。
I'm working with the following Code to copy a saved plot into another.
fig1 = openfig('ABC.fig');
fig2 = openfig('DEF.fig', 'invisible');
copyobj(fig2.Children.Children, fig1.Children);
This works fine, as long as I'm not using a legend in fig2
, then I get a Error message for using too many input arguments in copyobj
. In the documentation I learnt, that copyobj
doesn't copy the context menu of legends, so I'm asking for your help in copying the legend as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如图所示在这里:
As shown here: