Figure is not properly overlapped on shape file, little shifted.
2 ビュー (過去 30 日間)
古いコメントを表示
When I plot the output and overlay it on shape file, it comes little shifted.
Any suggestion would help me.
5 件のコメント
Walter Roberson
2019 年 5 月 1 日
pcolor() uses surf() underneath it. Each face is derived by interpolating the four corner vertices, so the number of faces shown is one less in x and y direction than the number of matrix entries. This can result in a shift relative to plotting the same coordinates due to differences in interpretation of what the coordinates mean. For pcolor, coordinates are vertices, but the what the user sees as color is faces between the vertices.
If there is no significant curvature in what you are drawing, you could consider using image() or imshow(), which accept XData and YData coordiantes that relate to the lower left and upper right corners. The coordinates are considered to be coordinates of the center of pixels.. but only uniform rectangular grids are possible image() or imshow()
Your code does not show where you are getting lon or lat or Temp from, so it is not clear that they relate to anything you read from S.
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!