필터 지우기
필터 지우기

Marker color on web browser matlab

조회 수: 1 (최근 30일)
Nachiket Wadwankar
Nachiket Wadwankar 2021년 4월 15일
댓글: Nachiket Wadwankar 2021년 4월 17일
I am plotting latitude-longitude location on inbuilt web browser using wmmarker command. When i tried giving custom color to marker using color triplet notation it gave me following error:
Expected ColorSpec to match one of these values:
'red', 'green', 'blue', 'white', 'cyan', 'magenta', 'yellow', 'black'
The input, '#0072BD', did not match any of the valid values.
Is there a way to give custom color to marker other than the standard colors listed above?
Thank you.
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2021년 4월 15일
Nachiket - have you tried setting the MarkerFaceColor instead?
Nachiket Wadwankar
Nachiket Wadwankar 2021년 4월 16일
MarkerFaceColor option works for normal plot command markers but not for wmmarker command.
Expected input to match one of these values:
'AutoFit', 'FeatureName', 'OverlayName', 'Description', 'Color', 'Icon',
'IconScale', 'Alpha'
The input, 'MarkerFaceColor', did not match any of the valid values.

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

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 4월 17일
Have you looked at the Color section of the wmmarker documentation page?
Color must use the convention explained on the Colorspec page. You cannot use hex color codes. Perhaps something like this?
wmmarker(lat,lon,'Color',[0,0.4471,0.7412])
  댓글 수: 1
Nachiket Wadwankar
Nachiket Wadwankar 2021년 4월 17일
Hello Cris,
Thanks for your response. Yes I realized this and have already made changes accordingly in my code.
Regards,
Nachiket

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by