问题描述
我想要在一张图中绘制三个散点图,在 ORI_PL& ORI_ML 之间绘制,其他组的类似。并且每组的标记是不同的。但是标记的颜色应该遵循左侧提到的颜色,我该怎么做?我写了代码,但无法为组内的每个人设置不同的颜色。
plt.scatter(sample_data.Image2,sample_data.ORI_PL,sample_data.ORI_ML,marker="o",c='gray')
plt.scatter(sample_data.Image2,sample_data.ORILOWER_PL,sample_data.ORILOWER_ML,marker="+",c='b' )
plt.scatter(sample_data.Image2,sample_data.ORIHIGH_PL,sample_data.ORIHIGH_ML,marker ="_",c='r' )
#palette['BLUE','YELLOW','GREEN','RED','ORANGE']
plt.xlabel("Physical luminance")
plt.ylabel("Matched luminance")
plt.show()