2017-10-26 3 views
0

코드 :하기 matplotlib의 pyplot.plot() 마커 색상

plt.plot(x,"g.") 
plt.show() 

생성 : 나는 다른 방법으로 색상을 지정하려고하면 enter image description here

, 라인이 추가됩니다

plt.plot(x,"darkgreen",marker=".") 
plt.show() 

enter image description here

줄이 필요하지 않습니다. 플롯에 라인을 추가하지 않고도 단일 문자 코드와 다른 색상을 사용할 수 있습니까?

답변

1

설정 linestyle"None"에 :

plt.plot(x,color="darkgreen",marker=".", linestyle="None") 
관련 문제