Which plot to use

1 回表示 (過去 30 日間)
vijay rs
vijay rs 2021 年 4 月 4 日
コメント済み: David Fletcher 2021 年 4 月 4 日
Hi,
I need to plot a graph something similar to below, may I know is the any plot in matlab that I can use ?
I am beginner in matlab, sorry if my question is too basic.
  1 件のコメント
David Fletcher
David Fletcher 2021 年 4 月 4 日
I've no idea how the line was derived, but it looks like some form of linear regression on the raw data:

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

採用された回答

Walter Roberson
Walter Roberson 2021 年 4 月 4 日
You would use plot() to create the line.
You would use scatter() to plot the dots. You can use two different scatter() commands, one for the dark color and one for the brighter color; or you can use a single scatter() command in which you specify the color of each point individually. If you need to duplicate the exact pattern of which dot is on top or below, you will need to be careful about the order of coordinates; the later dots would be "on top of" the earlier dots.
You can text() some of the labels into place.
For the other labels, you would probably want to use annotation() with the 'textarrow' option.
Unfortunately annotation() does not provide bent arrows; you would have to use two annotation calls for that, one with 'line' and the other with 'textarrow'

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by