legendflex-pkg icon indicating copy to clipboard operation
legendflex-pkg copied to clipboard

multi-line legend entries not supported

Open kakearney opened this issue 7 years ago • 1 comments

(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.

  1. Using the default legend function of matlab, I would write : legend('a','b',{'c1','c2'}) or legend('a','b',['c1',char(10),'c2'])
  2. 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.

kakearney avatar Apr 11 '17 18:04 kakearney

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.

kakearney avatar Apr 11 '17 18:04 kakearney