scatter plot with different legend and color
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to make a scatter plot for two vectors mean_vector_15 (1X8) and STD_Vector_15 (1X8). I want to make each dot with different color and I want to show its legend. Can anyone please help.
if true
% code
figure
pointsize = 12;
colormat = Mean_Vector_15;
scatter(STD_Vector_15,Mean_Vector_15, pointsize,colormat);
title('Reservoir Uncertainty with 15% STD ')
xlabel('NPV STD, ($B)')
ylabel('Epected NPV($B)')
legend({'M','2S','S','-2S','-S','P10','P50','P90'})
end
Thanks so much for looking into this.
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!