Plotted text changes size when its transfered to another figure
3 次查看(过去 30 天)
显示 更早的评论
I am developing an AppDesigner app that tries to automate some predefined vector drawings using UI axes. I basically have some number of boxes that I have created using polyshape and they have numbers in the middle created by using text function. However, since I have to use release 2019a, I cannot directly save uiaxes as a vector pdf, so I use a workaround that I found in community about copying all the child objects of this axes in a new invisible figure and saving that figure. However, when I copy axes childs to this figure the text size changes drastically and since I have a short but wide plot the text comes quite large in comparision with the boxes which makes exported vector unusable. Is ther any way for me to change the fontsize in this plotted text after I copied it to new figure?
As an alternative way, the toolbar in the uiaxes has an export button that works really good to export vector graphics, is there a programmatic way to activate the callback of toolbar export button? Since exportgraphics doesn't work in 2019a I couldn't able to find a way to save figures that works similarly to the export button, I am using saveas but it saves the figure in a aspect ratio that doesn't include all the data in the figure.
4 个评论
Gunnar Zindel
2023-10-13
编辑:Gunnar Zindel
2023-10-13
Hi, Tek,
so, if you have the need to identify specific text objects, you might think about giving them tags using the tag property, which a text object should have if i remember that right.
You could for example tag them all as "NeedsResize" or something else before saving them and then after reloading them find the correct ones using the "findobj" - function.
Best regards
Gunnar
回答(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!