Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.8k views
in Technique[技术] by (71.8m points)

scatter plot - need scatterplot using different colors for the each points in the same group with the same marker using python and data in excel sheet(csv format)

data is attachedsample of output attached[I want the graph to be similar to the attached png file and the data is attached as well.][]

fig = plt.figure()
ax1 = fig.add_subplot(111)[enter image description here][1]
plt.scatter(sample_data.ORI_PL,sample_data.ORI_ML,marker="o",c='gray')
plt.scatter(sample_data.ORILOWER_PL,sample_data.ORILOWER_ML,marker="+", c='b'   )
plt.scatter(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()

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...