필터 지우기
필터 지우기

How to set x axis in a plot?

조회 수: 1 (최근 30일)
Fabian Moreno
Fabian Moreno 2021년 11월 28일
댓글: Fabian Moreno 2021년 11월 28일
Hello, I would like to know if is possible to set the X- axis like the plot that I loaded. I make the x-axis in pain just as an example of what I would like to do.

채택된 답변

Chunru
Chunru 2021년 11월 28일
편집: Chunru 2021년 11월 28일
subplot(6,1,1:5); imagesc([1 8], [14, 22], randi(100,100));
subplot(8,1,8);
imagesc([1 8], 1, [1 2 2 2 2 2 2 3 3]);
set(gca, 'XTick', [], 'YTick', [])
text(4, 1, 'G3');

추가 답변 (1개)

Image Analyst
Image Analyst 2021년 11월 28일
rgbImage = imread('peppers.png');
imshow(flipud(rgbImage), 'XData', 1:8, 'YData', 14:22);
axis('on', 'xy')

카테고리

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