Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Why is the alignment on my legend wrong? (2016b)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Whenever I try to put a legend on a plot the text ends misaligned with the line information. For instance running the code:
x = [0:.1:2]
figure
plot(x,sin(x),'b')
hold on
plot(x,cos(x),'r')
legend('sin','cos')
Produces the plot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192130/image.png)
2 comentarios
Walter Roberson
el 18 de Jul. de 2018
I am not able to reproduce this on R2016b for Windows 10, operating in a Virtual Machine.
Respuestas (1)
Walter
el 25 de Jul. de 2018
Editada: Walter Roberson
el 25 de Jul. de 2018
I can replicate this in windows 10 R2018a.
figure(1)
for day=1:length(DOI)-1
plot(algN{day, 1}(:,3),'LineWidth',4,'Color','b')
hold on
plot(algN{day, 2}(:,3),'LineWidth',4,'Color','r')
end
hold off
xlabel('ROI')
ylabel('Spatial*Temporal corraltion')
title('Quality of alignmen')
set(gca,'FontSize',20)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192535/image.png)
2 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!