I have a lot of graphs I want to plot in one plot. I’ve just started with matplotlib and can’t find a good way to generate a lot of distinguishable colors 🙁 Maybe cycling over HSV with SV at maximum?
I’m thinking of something like
args=[]
for i,(x,y) in enumerate(data):
args.extend([x,y,hsv(i)])
plot(*args)
Any suggestions? 🙂
I think you have the right idea, except that the colors will be more distinguishable if you pass the colormap
hsvnumbers which are spread out over the range (0,1):or, using NumPy:
For example: