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일

0 개 추천

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

댓글 수: 2

James
James 2017년 12월 5일
Thank you!
Greg
Greg 2017년 12월 5일
Happy to help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Vehicle Scenarios에 대해 자세히 알아보기

질문:

2017년 12월 5일

댓글:

2017년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by