Plotted text changes size when its transfered to another figure
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Gunnar Zindel
el 13 de Oct. de 2023
Editada: Gunnar Zindel
el 13 de Oct. de 2023
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
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!