title on legend 2014b
조회 수: 2 (최근 30일)
I have read and now experienced that the legend of plots have been changed in the new version of MATLAB - 2014b. Now i have the problem that the 'title' property of a legend has been removed.
earlier i could use codes like:
v = get(h,'title');
any easy way without using a simple text box?
Robert Cumming 2014년 10월 21일
편집: Robert Cumming 님. 2014년 11월 2일
In the previous versions of Matlab legend was built on an axes.
Access to the title property of the legend wasn't (as far as I know) documented - hence it was there more by accidental design than intended design if you get what I mean.
The re-writing of legend means its no longer a by-product of an axes. By that fact I suspect this "feature" has also dissapeared.
Looking at the properties of legend, both documented and undocumented as far as I can tell there is no title to set.
edit: I have uploaded a submission to the FEX which you can use in both HG1 and HG2 to set titles on legends.