m GkEc@sYdZdklZlZdklZdklZdklZddZ dZ dS( s, Some simple functions to generate colours. (sasarraysasum(slinspace(scolorConverter(ssumf2.3999999999999999c Cstti|}t|}|djo%|djod|}||}nt|}d} x|D]}| d|7} qlW||| }g}|D]}|||d|q~}|S(s( Convert colour into a nice pastel shadef1.0iN(tasarraytcolorConvertertto_rgbtcolourtrgbtmaxtmaxctscaletasumttotaltslacktxtweightt_[1]tc( RR R RRR RRR R ((tF/home/jbjuin/Documents/HowToCode/Python/Matplotlib-examples/colours.pytpastel s   -cCstdddgdddgdddgg}|djo|d|!Sn|ddd|ddf}g}x\dD]T}xKtdd||dD]/}|i||d|||d|qWqyWg}|d|!D]}|t |q~S(s Return n pastel colours. iiiif1.0N(ii( RtbasetntneededtcolourststarttlinspaceR tappendR RR(RR RRRRRR ((Rt get_colours"s0  1N( t__doc__tmatplotlib.numerixRRtmatplotlib.mlabRtmatplotlib.colorsRtsumRR(RRRRRRR((Rt?s