How to display markers with specific colors, shapes, line styles, and filling with array in a scatter plot

1 view (last 30 days)
I have a large data set that needs to be sorted and plotted in a fairly specific way. I can sort the data well into two columns (lets say x and y) for marker position and one more column with a numeric for what style of marker the point should be. (1 = Open blue circle, 2 = closed blue circle, 3 = closed blue circle with black boarder, and more...) Is is possible to pass this information to scatter() and have it plot for me? I know i can pass a color array but can not figure out passing a marker style/line color/ line size array...
thanks!

Answers (1)

Walter Roberson
Walter Roberson on 21 May 2015
Any one call to scatter() can specify properties such as marker type and line width, but those properties apply to all points plotted in the call. The limitation is similar to the limitation for line objects, that any one line object can only have a single marker type etc..

Community Treasure Hunt

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

Start Hunting!