How do I label pcolor y and x axes please

23 次查看(过去 30 天)
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