
グローバルマップへのプロット
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
添付データ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 Kommentare
mizuki
am 1 Dez. 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
補足ですが、新規のご質問がある場合は、前回のご質問への回答ではなく、新たにご質問を作成していただくとユーザの目に留まりやすいので回答もつきやすくなります。
Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!