- 마커 테두리 두께를 제어하려면
linewidth
만 설정하면됩니다.
- 반복 기호를 사용하여 해칭 밀도를 높일 수 있습니다 (아래 예의 경우
'|'
이 R/H 창에서 반복됩니다 .NW-> SE 대각선을 얻으려면 기호를 이스케이프해야 함을 유의하십시오. 실제로 많은 문자를 두 번 - '\\\\'
은 밀도 2이고 '||||'
은 밀도 4입니다. 그러나, 나는 부화 내의 개개의 선의 두께가 제어 가능하다고 생각하지 않는다.
아래의 코드 예제는 다음과 같이 산포도를 생성하는 참조 : collections 및 scatter에
import matplotlib.pyplot as plt
# generate some data
x = [1,2,3,4,5,8]
y= [i**2 for i in x]
y2= [60-i**2+3*i for i in x]
# plot markers with thick borders
plt.subplot(121)
plt.scatter(x,y, s=500, marker='s', edgecolor='black', linewidth='3', facecolor='green', hatch='|')
# compare with no borders, and denser hatch.
plt.subplot(122)
plt.scatter(x,y, s=500, marker='s', edgecolor='black', linewidth='0', facecolor='green', hatch='||||')
plt.show()
하기 matplotlib 문서를.
2 : [matplotlib에서 해치의 선폭을 변경하는 방법] (http://stackoverflow.com/questions/29549530/how-to-change-the-linewidth-of-hatch- in-matplotlib) – Henhuy