How to create smoothly shaded colors in geoshow?
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm making a global map of a 512x1024 grid using the geoshow function. The map looks good, but it's pixelated if you zoom into areas of, say, 1000 km by 1000 km. I would like to smooth the colors in the image out, the way that "shading interp" does with a figure created by "surf".
However, trying to apply shading interp to the map after it's created makes the map go blank, and it yields an error message: "Warning: size(CData) must equal size(ZData) for interpolated shading ".
To be specific, this is what I'm trying to do to plot the grid Z:
Rs = makerefmat(0.5*360/1024, 90-0.5*180/512, 360/1024, -180/512);
geoshow(Z,Rs,'DisplayType','texturemap');
shading interp
Everything works except for the shading interp command.
Does anyone know how to interpolate colors on a map like this, after its been created? I'd rather not interpolate the data itself and then plot it, since it takes a while for matlab to plot up the map if you interpolate to much higher grid spacings (e.g., to a 4096 x 8192 grid).
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!