I am plotting probability plots, but I want different colors for different data. All data are of different size ?
조회 수: 25 (최근 30일)
이전 댓글 표시
figure;
probplot('lognormal', Loadingtime_4);
hold on;
probplot('lognormal', Loadingtime_5);
hold on;
probplot('lognormal', Loadingtime_6);
xlabel('Loading Duration (secs)');
set(gca, 'XScale', 'log'); % Set the x-axis to use a logarithmic scale
xticks([10 50 100 500 1000 10000]);
xticklabels({'10', '50','100', '500', '1000', '10000'});
grid on;
legend('Lognormal Distribution','Data Drift 4,5 & 6','Location','southeast')
title('Lognormal')
댓글 수: 0
채택된 답변
Walter Roberson
2023년 10월 19일
https://www.mathworks.com/help/stats/probplot.html#bu27cw3-1 is an example that shows adding a line to a probplot(), and one of the steps it shows is changing the color
h = probplot(gca,t,p);
h.Color = 'r';
You can use that same technique to give different colors to your different probplot()
댓글 수: 7
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!