Plot data points as points when using 'errorbar'

Hi there,
I am trying to plot errorbars around my datapooints. The relevant command I am using is below ( script relies on other files and is too long to import) and the output I am getting is attched. I am wanting my datapoints to be normal rather than the messy lines as shown.
I would be grateful if someone could offer any advice on fixing this!
p6= errorbar(m_lat_QPS_changed,m_lon_QPS_changed,avg_err_qps_changed,'both','Color', green);
Many thanks
P

 採用された回答

Bjorn Gustavsson
Bjorn Gustavsson 2019 年 4 月 10 日

0 投票

Doesn't this work for you?:
errorbar(x,y,e,'.-','markersize',18)
HTH

1 件のコメント

P_L
P_L 2019 年 4 月 10 日
Hi Bjorn,
thanks for getting back to me.
I have now fixed my code using:
errorbar(x,y,e,'.','both')
Thanks for your help :)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeErrorbars についてさらに検索

質問済み:

P_L
2019 年 4 月 10 日

コメント済み:

P_L
2019 年 4 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by