How to plot non-square Seaborn jointplot or JointGrid

后端 未结 3 1116
情话喂你
情话喂你 2020-12-20 13:44

I am trying to plot my non-symmetric data using Seaborn\'s JointGrid. I can get it to use an equal aspect ratio, but then I have unwanted whitespace:

How do

3条回答
  •  醉酒成梦
    2020-12-20 14:13

    You will need to set the ylim and xlim parameters, which will limit the x and y axis to the tuple ranges you specify:

    e.g.

    sns.jointplot(x="n_estimators", y="learning_rate", data=data,
                  color="#172235", height=8, ratio=10, space=0,
                  ylim=(0, 1.1), xlim=(-20, 310))  # <-- this
    
    

提交回复
热议问题