我如何从内部得到安达斯造地的彩色。 数据框架?
这里是产生有色谱块的例子:
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import itertools as it
# [ (0,0), (0,1), ..., (9,9) ]
xy_positions = list( it.product( range(10), range(10) ) )
df = pd.DataFrame( xy_positions, columns=[ x , y ] )
# draw 100 floats
df[ score ] = np.random.random( 100 )
ax = df.plot( kind= scatter ,
x= x ,
y= y ,
c= score ,
s=500)
ax.set_xlim( [-0.5,9.5] )
ax.set_ylim( [-0.5,9.5] )
plt.show()
which gives me a figure like this:
我如何利用肤色来操纵它,例如改变标签或制定标准?