Marker color on web browser matlab

1 Ansicht (letzte 30 Tage)
Nachiket Wadwankar
Nachiket Wadwankar am 15 Apr. 2021
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 Kommentare
Geoff Hayes
Geoff Hayes am 15 Apr. 2021
Nachiket - have you tried setting the MarkerFaceColor instead?
Nachiket Wadwankar
Nachiket Wadwankar am 16 Apr. 2021
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 17 Apr. 2021
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 Kommentar
Nachiket Wadwankar
Nachiket Wadwankar am 17 Apr. 2021
Hello Cris,
Thanks for your response. Yes I realized this and have already made changes accordingly in my code.
Regards,
Nachiket

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Identification 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!

Translated by