Scatter chart: How to adjust the transparency of marker?
98 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Wondering how to change the transparency of marker from plot tools? At the moment, I can only adjust the line thickness and line colour of the marker, and the size and face colour of the marker. Where to find the transparency scale of the colour, like in Excel, where one can just simply adjust it?
0 Kommentare
Antworten (2)
Sachindra Dhanapala Arachchige
am 16 Mai 2018
to fill the markers just add f1 = scatter(.....,'filled',....) then try f1.MarkerFaceAlpha = 0.2; should work.
0 Kommentare
MathReallyWorks
am 16 Jun. 2017
Hello,
Use this code:
ax = axes;
hold on;
for i = 1:10
s = scatter(10*rand(1),10*rand(1),36,rand(1,3),'filled'); %This is random data. You can use yours.
s.MarkerFaceAlpha = rand(1); %%marking every maker with different alpha value
end
2 Kommentare
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!