How to export XaxisTick Labels which are cell arrays to figure or powerpoint in app designer?
1 次查看(过去 30 天)
显示 更早的评论
Please refer to the attached figure. If i keep the XaxisTicklabels as 1,2,3 and so on, it can be exported to PPT or figure with the help of h = copyUIAxes(app.UIAxes,axh).
But if the XaxisTickLabels are as in attached image, it displays the following error:
"Value must be a vector of type single or double whose values increase"
How to proceed with this?
7 个评论
Adam Danz
2020-3-12
Update, with some guessing work (that was necessary since I wasn't provided an example), I've been able to recreate the problem and am working on a solution.
The problem is that your historgram data are categorical the categorical properties aren't copied to the new axes.
I'll update you when a solution is ready.
回答(1 个)
Adam Danz
2020-3-19
编辑:Adam Danz
2020-3-23
@Rohit Deshmukh, please download and start using the new version of copyUIAxes() (verson 1.2.0, as of 19-Mar, 2020).
I've updated it to work with categorical histograms. Please let me know if you have any further problems.
6 个评论
Adam Danz
2020-4-4
Thanks, Emil. I would be interested in hearing of any shortcoming you may find with that function.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!