I have a set of points created through a python program which belongs to different clusters. I would like to plot it on a graph so that points in different clusters should be plotted with different colours.
UPDATE
In my case I have a univariate data ( marks of a test). Looking for a way to plot it.
I have two clusters that are stored in two arrays. Like x=[1,20,10,4], y=[1644,34444]. I would like to plot it like as in a cluster
you can use matplotlib. I'm not sure to understand exactly your need, but it could be something like this :
from pylab import *
for (x, y) in clusters:
plot(x, y, '+')
show() # or savefig(<filename>)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With