档案交换一周

我们最好的用户提交

复制UIAXES图形

Jiro本周的选择是Coperuiaxes经过亚当·丹兹(Adam Danz)

你们中的许多人可能从文件交换和MATLAB答案中都知道亚当。在文件交换上,他是许多高质量参赛作品的作者,本周选择了3个选秀权。

Coperuiaxesis one of those functions that has a clear need but is quite daunting to tackle because of the complexity. The idea started from this thread on MATLAB Answers, "如何在应用程序设计师中保存一个数字?“您可以看到关于Quesiton和解决方案进行了非常积极的讨论。事实证明该功能万博 尤文图斯copyobj,它使您可以将图形对象从一个父句柄复制到另一个父uiaxesuiaxesis a (relatively) new type of graphics object that came about with the introduction of应用程序Designer。它与传统不同,以及与旧图形系统一起使用的某些命令不适用于新图形对象。copyobj是其中之一。

Copying objects from auiaxes允许您在传统上显示内容,这使您可以轻松保存,打印或修改图形。挑战在于,如Adam在描述中提到的那样,许多轴属性“隐藏,模糊,只读或不同”。如果您查看他的代码,他会尽可能及时兼容,他会有很多验证,错误检查,特殊情况和其他技术。

我还鼓励您在代码中查看,因为Adam包括有关代码以及任务复杂性的一些详细信息。

Adam mentions this in the File Exchange entry page, but in R2020a, there are two new functions复合图and出口图that let you copy or save your graphs created inuiaxes。但是尽管如此,他的Coperuiaxesis valuable for people using older releases.

Comments

Give it a try and let us know what you thinkhere或留下一个评论对于亚当。




Published with MATLAB® R2020a

|
  • 打印
  • 发送电子邮件

Comments

要发表评论,请单击here登录您的数学帐户或创建一个新帐户。