How to change figuresize using seaborn factorplot

前端 未结 7 1563
长情又很酷
长情又很酷 2020-11-27 14:19
%pylab inline

import pandas as pd
import numpy as np
import matplotlib as mpl
import seaborn as sns

typessns = pd.DataFrame.from_csv(\'C:/data/testesns.csv\', inde         


        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 14:57

    mpl.rc is stored in a global dictionary (see http://matplotlib.org/users/customizing.html). So, if you only want to change the size of one figure (locally), it will do the trick:

    plt.figure(figsize=(45,10))
    sns.factorplot(...)
    

    It worked for me using matplotlib-1.4.3 and seaborn-0.5.1

提交回复
热议问题