Я пытался избежать ошибки границ, добавив edgecolor
и linewidth
, но все еще сталкивался с этим.
plt.figure(figsize=(20,9), edgecolor="black", linewidth=3 )
loans[loans['credit.policy']==1]['fico'].hist(alpha=0.5,color='blue',
bins=30,label='Credit.Policy=1')
loans[loans['credit.policy']==0]['fico'].hist(alpha=0.5,color='red',
bins=30,label='Credit.Policy=0')
plt.legend()
plt.xlabel('FICO')
