Contrast problem using surf plot in subplot

조회 수: 10 (최근 30일)
M Qliz
M Qliz 2020년 12월 6일
답변: Star Strider 2020년 12월 6일
I'm trying to create a subplot containing 4 surf' with three a ranged colormap (white,red,green), the problem is that when I call subplot my surf plots become so small all parts seem the same way, I have to zoom a lot so I can see the difference.
subplot(2,2,i);
surf(access);
view(0,90);
map = [1 1 1;1 0 0;0 1 0];
colormap(map);
axis equal;
  댓글 수: 2
VBBV
VBBV 2020년 12월 6일
Specify different X, Y limits e.g. 80 to 120 inside the surf or contourf functions for each subplots. Also ensure that Z matrix has dimensions agreeing the new X,Y range
M Qliz
M Qliz 2020년 12월 6일
@VBBV that will surely make the colors recognizable but(!) I want all of the map to be shown and can also be recognizable.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2020년 12월 6일
Set 'EdgeColor' to 'none', or shading to 'interp'.

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by