Plotting 2 data points with error bars in different colors

15 ビュー (過去 30 日間)
Tihana
Tihana 2016 年 4 月 3 日
コメント済み: Tihana 2016 年 4 月 4 日
I would like to plot these 2 values with errorbars in 2 different colors, one value and error bar in one color and the other value in a different color. How can I change the colors of the points (and corresponding error bar) indepedently? Thanks.
errorbar([0.212836991 0.042701072],[0.050336092 0.037367353],'.')
  1 件のコメント
Tihana
Tihana 2016 年 4 月 4 日
Thank you dpb for your answer.

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

回答 (1 件)

dpb
dpb 2016 年 4 月 3 日
Can't set them indendently with one errorbar handle as they're one line object for the points and another composite group for the error bars. You'll have to plot the two points separately to have them differing colors, sorry.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by