필터 지우기
필터 지우기

How do I label pcolor y and x axes please

조회 수: 18 (최근 30일)
Kamil Kacer
Kamil Kacer 2020년 12월 3일
답변: Walter Roberson 2020년 12월 3일
How do i label pcolor axes please

답변 (1개)

Walter Roberson
Walter Roberson 2020년 12월 3일
img = sort(randi([0 255], 240, 320, 'uint8'));
subplot(1,2,1); imagesc(img); colormap(hot); xlabel('x'); ylabel('y');
subplot(1,2,2); p = pcolor(img); p.EdgeColor = 'none'; colormap(hot); xlabel('x'); ylabel('y');
(The two have diffrent defaults about which direction Y increases.)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by