i plotted a graph with three different set of values. how to specify them with manual colors and create a text box by notifying them
조회 수: 1 (최근 30일)
이전 댓글 표시
plot( Y2(1:21,13),Z2plot(1:21,13),Y1(1:21,13),Z1plot(1:21,13),Y(1:21,13),Zplot(1:21,13));
xlabel('\fontsize{20}X - Pixels');
ylabel('\fontsize{20}Z plot');
title('\fontsize{22}integration 64*32');
i want to specify the colors for each different graph and notify them witha textbox to onside of the plot.
댓글 수: 0
답변 (1개)
Image Analyst
2017년 4월 27일
Try this:
plot(Y2(1:21,13), Z2plot(1:21,13), 'r-', 'LineWidth', 2);
hold on;
plot(Y1(1:21,13), Z1plot(1:21,13), 'g-', 'LineWidth', 2);
plot(Y(1:21,13), Zplot(1:21,13), 'b-', 'LineWidth', 2););
grid on;
xlabel('\fontsize{20}X - Pixels');
ylabel('\fontsize{20}Z plot');
title('\fontsize{22}integration 64*32');
legend('Z2plot', 'Z1plot', 'Zplot');
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!