legendflex-pkg
legendflex-pkg copied to clipboard
multi-line legend entries not supported
(Posted by Matilda, April 11, 2017, via the MatlabCentral File Exchage):
Thank you for this great function ! I have been trying to use this function to create a legend where one of the legend entry is on two lines.
- Using the default legend function of matlab, I would write : legend('a','b',{'c1','c2'}) or legend('a','b',['c1',char(10),'c2'])
- I tried using these in legendflex and it returns an error. I have tried to debug the error and I got to display a two lines legend entry but the legend entries and legend symbols are no longer aligned correctly. Did anyone tried to plot a multi-line legend entry using legendflex ? I have more details on the errors if needed.
Thanks for pointing out this issue. The logic behind the legendflex function doesn't currently support multi-line entries; adding that capability will require a bit of reworking of the code. I'll add that to my TODO list, but no promises on a timeline.