Increase tick label font size in seaborn

后端 未结 3 1851
谎友^
谎友^ 2021-02-05 08:18

I have a huge problem with my seaborn plots. For some reason, the numbers along the axis are printed with a really small font, which makes them unreadable. I\'ve tried to scale

3条回答
  •  攒了一身酷
    2021-02-05 08:50

    The answer from here makes fonts larger in seaborn ...

    import pandas as pd, numpy as np, seaborn as sns
    from matplotlib import pyplot as plt
    
    # Generate data
    df = pd.DataFrame({"Draughts": np.random.randn(100)})
    
    # Plot using seaborn
    sns.set(font_scale = 2)
    b = sns.violinplot(y = "Draughts", data = df)
    plt.show()
    

提交回复
热议问题