legend problem with handles
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Legend in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!