Text in 3D plot

210 ビュー (過去 30 日間)
Amit Kalhapure
Amit Kalhapure 2013 年 4 月 8 日
Hi, I want to insert text in a 3D plot and for that I'm using following command.
text(x1(i,1),y1(i,1),z1(i,1),num2str(time(i,1)),'HorizontalAlignment','left','FontSize',8);
My problem is, the point in 3D plot is overlapped by the text. I want the point and its respective text should be separated enough to be identified clearly. Can anybody help me?
Amit.

採用された回答

Jonathan Epperl
Jonathan Epperl 2013 年 4 月 9 日
How about adding a few whitespaces to your string, like so:
text(x1(i,1),y1(i,1),z1(i,1),[' ' ...
num2str(time(i,1))],'HorizontalAlignment','left','FontSize',8);
  1 件のコメント
Amit Kalhapure
Amit Kalhapure 2013 年 4 月 9 日
Yes it works. Thanks.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by