2017-11-22 9 views
0

다음 변수가있는 DataFrame이 있습니다. 나는 "이익"을 "날짜"를 제외한 다른 변수로 계획하여 관계를 찾으려고합니다.Seaborn pairplot이 매트릭스 형태로 표시되지 않습니다.

  • 날짜
  • Billable_Fixed 입찰
  • Billable_Time_Material는
  • Non_Billable
  • Indirect_Costs
  • Unbilled_CP_and_AM
  • Direct_Costs
  • PROFI을 Billable_Transaction_Based t

코드 :

cols = [ 
    'Billable_Fixed Bid', 
    'Billable_Time_Material', 
    'Billable_Transaction_Based', 
    'Non_Billable', 
    'Unbilled_CP_and_AM', 
    'Direct_Costs' 
] 

sns.pairplot(data1,x_vars=cols,y_vars='Profit',size =5,kind='reg') 

문제는 플롯이 명확하게 표시되지 않는 한 줄에 표시지고있다.

한 줄에 2 개의 줄을 표시하여 잘 보이도록하고 싶습니다. 사람이

enter image description here

을 도와 드릴까요?

+0

[mcve]가 아닙니다. 그러므로 내가 말할 수있는 유일한 것은'콜레라 (coll_wrap) '인자로'FacetGrid'를 사용하는 것입니다. – ImportanceOfBeingErnest

답변

0

덧글 당 : FacetGridcol_wrap=2을 사용하면 문제가 해결됩니다. documentation의 예를 확인하십시오.