Plotting 2 data points with error bars in different colors
조회 수: 7 (최근 30일)
이전 댓글 표시
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개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!