Unable to add text to map plot

As an example, if I do
clf; worlddatamap('landareas.shp',[0 45],[-45 0],'line')
setm(gca,'MapProjection','robinson');
contourfm(0:5:45,-45:5:0,randi(100,10,10),0:10:100,'LineStyle','none');
I then can't add any text (using the "text" command) to the figure. However, the land contours disappear when I do the contourfm line above.
The "textm" works fine. The only thing that happens if I do
text(0,0,'Help me');
is that the land contours appears. I have tried different values for x and y in the text line above. I have also tried adding a z value but with no luck. I'm using R2015b on a windows laptop. What am I doing wrong?
Many thanks for your kind help, Fredrik

1 件のコメント

Fredrik
Fredrik 2015 年 9 月 24 日
I just found a solution, using annotation('textbox' ...).

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraphics Object Properties についてさらに検索

質問済み:

2015 年 9 月 23 日

コメント済み:

2015 年 9 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by