Skip to main content
added 1 character in body; edited title
Source Link
Dawny33
  • 8.4k
  • 12
  • 49
  • 106

Couloring Colouring points based on cluster on matplotlib

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong  ?

EDIT: for clarification, having the set of points, I want to use the values of the array generated from KMeans.predict()KMeans.predict() ( from sklearn) to choose the color of each point.

Couloring points based on cluster on matplotlib

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong  ?

EDIT: for clarification, having the set of points, I want to use the values of the array generated from KMeans.predict() ( from sklearn) to choose the color of each point.

Colouring points based on cluster on matplotlib

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong?

EDIT: for clarification, having the set of points, I want to use the values of the array generated from KMeans.predict() ( from sklearn) to choose the color of each point.

added 175 characters in body
Source Link
gdlm
  • 535
  • 1
  • 6
  • 9

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong ?

EDIT: for clarification, having the set of points, I want to use the values of the array generated from KMeans.predict() ( from sklearn) to choose the color of each point.

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong ?

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong ?

EDIT: for clarification, having the set of points, I want to use the values of the array generated from KMeans.predict() ( from sklearn) to choose the color of each point.

Source Link
gdlm
  • 535
  • 1
  • 6
  • 9

Couloring points based on cluster on matplotlib

I have a set of points where I performed a KMeans classification. How make a plot where the color of the point is based on the cluster they belong ?