【发布时间】:2017-06-30 14:10:42
【问题描述】:
我想用我选择的颜色图绘制散点图。
我的代码:
# Create a scatter plot.
scatter = axes[1][1].scatter(
fourth.VALP, # First value to use.
fourth['TAXP'].map(taxp_convert), # Second value.
s = fourth['WGTP'].map(MinimizeSize), # Size of each point is its WGTP value
and minimizing the size
c = fourth.MRGP, # Color of each point is its MRGP value.
marker ='o')
但是,我希望颜色是这样的:
只知道axes.scatter中的c参数是负责颜色的,不知道怎么改成想要的颜色。
【问题讨论】:
标签: python matplotlib scatter-plot