How can i draw this type of graph?

2 ビュー (過去 30 日間)
Volkan Yangin
Volkan Yangin 2016 年 4 月 3 日
コメント済み: John D'Errico 2016 年 4 月 4 日
Hi everybody. What is the trick of this type of graph?
  4 件のコメント
Jon
Jon 2016 年 4 月 4 日
Use the line() plotting command to draw each segment individually. You can use text() to write and place text where you'd like.
John D'Errico
John D'Errico 2016 年 4 月 4 日
Then just use a tool like pcolor on a user supplied surface, with a custom colormap to define the colored field.

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

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 3 日
x=[0 0.2 0.4 0.6 0.8 1]
y=[0 0.02 0.04 0.06 0.08 0.1]
cl='rgbkcmy'
for k=2:numel(x)
line([0 x(k) x(k) 0],[0 0 y(k) y(k)],'color',cl(k),'linewidth',5)
hold on
end
  1 件のコメント
Volkan Yangin
Volkan Yangin 2016 年 4 月 3 日
thx mr. Abdelmalek :)

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

カテゴリ

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