Marker transparency for scatterm

7 次查看(过去 30 天)
I would like to set the transparency for my markers on a scatterm plot. I tried MarkerFaceAlpha, but that doesn't exist for scatterm. "Unrecognized property 'MarkerFaceAlpha' for class 'matlab.graphics.primitive.Group'."
Here is what I'm working with:
figure
ax = worldmap([20 50],[118 156])
land = shaperead('landareas', 'UseGeoCoords', true);
geoshow(ax, land, 'FaceColor', [0.5 0.7 0.5])
scatterm(num(:,2), num(:,1), 200, num(:,6), 'filled', 's')
colorbar
Any help would be much appreciated. I've scoured the internet for hours to no avail.

采纳的回答

Greg
Greg 2017-12-5
h = scatterm(num(:,2), num(:,1), 200, num(:,6), 'filled', 's');
h.Children.MarkerFaceAlpha = .5;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by