Add title, x and y labels to scatter()
조회 수: 117 (최근 30일)
이전 댓글 표시
figure
scatter(data(I_1, 2), data(I_1, 3), rowsize(I_1), rowcolour(I_1,:), 'filled');
hold on
scatter(data(I_2, 2), data(I_1,3), [0,0,0]);
xlabel('Long');
ylabel('Lat');
title('Data 1');
This seems really simple but each time I try and add x/y labels and a title, my chart comes back with only Figure 1 at the top. However, the data is plotted correctly. Any tips?
댓글 수: 2
dpb
2019년 6월 2일
Can't follow what you think is wrong and can't run your code w/o data to go with it...a scatter plot here seems to have no issues I can see with labels/title...at least attach the figure to show what you got and explain what you think you should have gotten instead...
KALYAN ACHARJYA
2019년 6월 2일
Share the complete code? Or Restart the matlab and try again? Is there same issue?
답변 (1개)
Sambit Senapati
2019년 6월 14일
From my understanding you would like to change the figure name from 'Figure 1' to something else. Please refer to following link: https://stackoverflow.com/questions/4684363/how-to-change-the-window-title-of-a-matlab-plotting-figure
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!