3D plot with europe map

1 回表示 (過去 30 日間)
Hande
Hande 2012 年 5 月 15 日
Hi , I have a question about 3D plot. I want to put the europe map to base of the plot. I mean x-y coordinate will be europe map, and through the z axis, there will be stems on some cities. How i can do this?

採用された回答

Walter Roberson
Walter Roberson 2012 年 5 月 15 日
Texture map the europe map on to a surface or patch object. "hold on" and stem3() the stems in to place.
Using the texture map is needed because ordinary images cannot rotate out of the z=0 plane.
  2 件のコメント
Hande
Hande 2012 年 5 月 16 日
Texture map works good, thank you so much. my code is this but also i want to add the values on the stems.The length of the stems are not important, just i want to write a value on them.
figure(1);
f=worldmap([30 60],[-15 45]);
geoshow('landareas.shp', 'FaceColor', [0.15 0.5 0.15])
warp(f);
rotate3d;
ptlat = [40.82 54.66 41.91 50.05 38.01]';
ptlon = [0.5 -1.55 12.43 14.44 23.68]';
ptz = [1 1.5 2 .5 1]';
stem3m(ptlat,ptlon,ptz,'r-');
Walter Roberson
Walter Roberson 2012 年 5 月 16 日
To put in labels, you need to text() them in to place (textm() them??). There is no option in the stem* routines to attach labels directly.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by