tags:

views:

64

answers:

1

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?

+1  A: 

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.

arun

related questions