How to have legend coloured according to data
Show older comments
Good Morning to all,
I've created a scatter plot with week days on the x and counter on the y axis. now i've get the graph with marker coloured according to weekday. my struggle is to have the legend following the weekday too. I've tried to treat legend as object, but i cannot get the result

thank you
2 Comments
Dave
on 3 Feb 2023
Alejandro, quick clarification. Are the colors in your scatter plot really colored according the weekday or are they colored according to the counter reading?
alejandro paradiso
on 3 Feb 2023
Edited: alejandro paradiso
on 3 Feb 2023
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!