In the figure, how to remove the item "aa" from the legennd without changing the shape of other items?
PointStyle = {'kp-', ... 'LineWidth', 1,... 'MarkerEdgeColor', 'k',... 'MarkerFaceColor', [0 0 .8],... 'MarkerSize',9}; plot(Points, PointStyle{:}); hold on dataStyle = {'Marker','o', ... 'LineWidth', 1,... 'MarkerEdgeColor', [.8 0.4 0.2],... 'MarkerFaceColor', [1 .6 0.2],... 'MarkerSize',7}; plot(data, dataStyle{:});
if n <=3 %toDO
else legend_str = {'aa','bb','cc'}; legend(legend_str, 'Fontsize',10,'Location', 'southoutside', 'Orientation','horizontal'); end
if n <=3 %toDOelse legend_str = {'aa','bb','cc'}; legend(legend_str{2}, legend_str{3}, 'Fontsize',10,'Location', 'southoutside', 'Orientation','horizontal'); end
The shape of third item "cc" is changed:
Best Answer