iteratorr
iteratorr

Reputation: 149

matlab get color

I am using matlab for cluster visualization. I want to somehow get the color of my current cluster center fill in the plot and draw line of same color to cluster members. How can I get the color?

Upvotes: 0

Views: 11115

Answers (1)

arun
arun

Reputation: 105

This is a generic answer to finding the color of any plot object in Matlab.

Select the object in the plot and use gco to get its color attribute.

c = get(gco,'Color');

Without any specific information about how and what you are plotting, it is not possible to give a more specific answer.

Upvotes: 6

Related Questions