legend problem with handles
Show older comments
Hi, Can someone explain me why the following code don't display the legend (I'm using Matlab R2016a):
markers(1, 5) = {'1'};
markers(2, 5) = {'2'};
markers(3, 5) = {'3'};
markers(4, 5) = {'4'};
markers(5, 5) = {'5'};
// other markers properties
prop_name(1) = {'LineStyle'};
prop_name(2) = {'Marker'};
prop_name(3) = {'MarkerSize'};
prop_name(4) = {'Color'};
prop_name(5) = {'DisplayName'};
graph_decomp_X = [handles.spectre_start:1:handles.spectre_stop];
graph_decomp = plot(handles.axesDecomposition, graph_decomp_X(1:marker_spacing:end), handles.graphe(1:marker_spacing:end, :));
set(graph_decomp, prop_name, markers);
legend('show')
Thanks, Bruno
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!