Open free41 opened 5 years ago
Having the same issue with the legend but with different problems in the markers. I'm using R2018b and the library is skipping some markers. The markers problem happens with and without legend. I've tried to mess with the MarkerSpacing
but without success. The Plot properties and export can be seen bellow.
plt = Plot(k, e(1, :), k, e(2, :));
plt.LineStyle = {'--', '-'};
plt.Markers = {'s', 'o'};
plt.LegendBox = 'on';
plt.MarkerSpacing = [0, 0];
plt.Legend = {'Test Data', 'Training Data'};
plt.XLabel = 'K';
plt.YLabel = 'Misclassification rate';
plt.Title = 'Misclassification rate';
I am seeing an issue when a legend is created with markers. Whenever a line includes a marker, the text in the legend corresponding to that line turns gray. I am using R2018a. The problem can be reproduced with: