How to plot ONE LINE with multiple colors?

8 ビュー (過去 30 日間)
reyadh Albarakat
reyadh Albarakat 2016 年 5 月 12 日
回答済み: Walter Roberson 2016 年 5 月 12 日
Hi Everyone,
I have data of VI for three periods first from 82-92, 93-2003 and 2004-2015.
I want to plot VI with time in ONE LINE provided that each period has different
color.
Thank you in advance
Reyadh

採用された回答

Walter Roberson
Walter Roberson 2016 年 5 月 12 日
It is not possible to do that in MATLAB using line objects or lineseries objects or primitive chart line objects, or annotation objects. Individual MATLAB lines are restricted to a single color.
For lines with color, you need to either draw multiple line segments, or you need to use patch objects with appropriate FaceVertexCData properties.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by