Change transparency of filled scatter when using 'errorbar' function
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (1)
dpb
am 19 Okt. 2024
0 Stimmen
"... '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 Kommentare
dpb
am 20 Okt. 2024
You could add a vote, anyways... :)
Kategorien
Mehr zu Errorbars finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

