Marker color on web browser matlab

1 次查看(过去 30 天)
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 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by