2014-03-04 2 views
35

, 나는이 두께를 그릴 플러스 (또는 교차)에 서명하고 싶은,하지만 marker set에서 제공 한 너무 얇은입니다.하기 matplotlib : 만들 더하기 기호 두꺼운하기 matplotlib에서

크기를 늘려도 더 두꺼운 것은 없습니다. example를 들어

: 빨간색 더하기 기호를 그리기 enter image description here lines of code은 다음과 같습니다 : 내가 추가 매개 변수 markersize=20를 추가하는 경우

# Draw median marker. 
if plot_opts.get('bean_show_median', True): 
    ax.plot(pos, np.median(pos_data), 
      marker=plot_opts.get('bean_median_marker', '+'), 
      color=plot_opts.get('bean_median_color', 'r')) 

이 마커는 스트레칭 것입니다. 이전만큼 얇을 것입니다. 나는 그것을 두껍게 만들 수 있습니까?

답변

69

markeredgewidth (또는 mew)을 사용할 수 있습니다. 당신은 markersize와 결합하고 싶을 것입니다, 그렇지 않으면 두꺼운 그러나 작은 표식을 얻습니다. 예를 들어

: markersize과 관련

plt.plot([2,4,6,1,3,5], '+', mew=10, ms=20) 

enter image description here

+8

참고로 기본적으로'mew = 0.5'와'ms = 6'이라는 것을 아는 것이 유용합니다 ... http://matplotlib.org/users/customizing.html –