
グローバルマップへのプロット
1 view (last 30 days)
Show older comments
添付データTAeを以下のプログラムで、グローバルマップに2.5度刻み(72 x 144)でプロットしようとしたのですが以下のエラーが出てしまいました。原因がわからず、対処法ご存じの方いらしましたら教えて頂きたいです。 以下コード
x = reshape(TAe,72,144);
rv = [0.4 90 180];
worldmap('world');
geoshow(x, rv, 'displaytype', 'texturemap');
C = load('coast');
plotm(C.lat, C.long, 'k');
以下エラー
Error using gridm>graticuleLine (line 235)
Values plotted against x-axis must be datetime values. To create datetime values, use the DATETIME function.
Error in gridm>drawGraticule (line 187)
hParallel = graticuleLine(mstruct, lat, lon, alt, 'Parallel');
Error in gridm>graticule_reset (line 106)
h = drawGraticule(mstruct);
Error in gridm (line 44)
h = graticule_reset(mstruct);
Error in axesm>setframegrat (line 813)
gridm('reset');
Error in axesm (line 185)
setframegrat(mstruct)
Error in setm>setmaxes (line 163)
h = axesm(varargin{:});
Error in setm (line 49)
setmaxes(varargin{:});
Error in regionmap>setCommonMapAxesProperties (line 516)
setm(ax, ...
Error in regionmap>constructMapAxesWorld (line 495)
setCommonMapAxesProperties(ax, ticksize, roundat);
Error in regionmap (line 103)
h = constructMapAxes(latlim, lonlim, e);
Error in worldmap (line 121)
ax = regionmap(mfilename, varargin);
Error in map_TA (line 3)
worldmap('world');
3 Comments
mizuki
on 1 Dec 2016
カラーマップの範囲はデフォルトではデータの最小値と最大値に合わせて作成されますので、データが変わればカラーマップも変更されます。 特定の範囲だけに絞りたいときは colorbar の ylim プロパティを変更します。
- How to show a colorbar of a certain range? https://jp.mathworks.com/matlabcentral/answers/11695-how-to-show-a-colorbar-of-a-certain-range
補足ですが、新規のご質問がある場合は、前回のご質問への回答ではなく、新たにご質問を作成していただくとユーザの目に留まりやすいので回答もつきやすくなります。
Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!