Change transparency of filled scatter when using 'errorbar' function
이전 댓글 표시
Hi there,
I have a very simple question: I was trying to plot errorbar figure using:
errorbar(x,y,Std, '-o', "MarkerSize",15,...
"MarkerEdgeColor",'k', "MarkerFaceColor", 'k', 'Color', 'k', 'LineStyle','-.',...
'DisplayName', 'Dataname');
What I need is to adjust the face transparency of the data point. However, it seems like the function 'errorbar' does not support this option: I tried 'MarkerFaceAlpha' but this is not recognized.
Could someone give advice?
Cheers!
채택된 답변
추가 답변 (1개)
dpb
2024년 10월 19일
0 개 추천
"... 'errorbar' does not support ... 'MarkerFaceAlpha' ..."
That would be a good enhancement request; seems no real reason is shouldn't other than the developer didn't choose to include.
The workaround would be to plot the errorbar w/o the marker and then use scatter to draw the markers which does support 'MarkerFaceAlpha'
You can probably also get the effect you want/need by simply multiplying the 'MarkerFaceColor' rgb triplet by a factor <1.
댓글 수: 2
dpb
2024년 10월 20일
You could add a vote, anyways... :)
카테고리
도움말 센터 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

