フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Why is the alignment on my legend wrong? (2016b)

1 回表示 (過去 30 日間)
Sean Rice
Sean Rice 2018 年 7 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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:
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 7 月 18 日
I am not able to reproduce this on R2016b for Mac.
Walter Roberson
Walter Roberson 2018 年 7 月 18 日
I am not able to reproduce this on R2016b for Windows 10, operating in a Virtual Machine.

回答 (1 件)

Walter
Walter 2018 年 7 月 25 日
編集済み: Walter Roberson 2018 年 7 月 25 日
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)
  2 件のコメント
Sean Rice
Sean Rice 2018 年 7 月 25 日
Any idea why that is happening or how to fix it? Also, I don't see a legend command in the code you posted.
Yenju Feng
Yenju Feng 2020 年 8 月 13 日
I also have the same problem with 2017a

この質問は閉じられています。

製品


リリース

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by