【问题标题】:Seaborn y labels are overlappingSeaborn y 标签重叠
【发布时间】:2019-03-12 01:54:05
【问题描述】:

所以我尝试对我的数据进行分类图,这就是我的代码和图表。

import pandas as pd
import numpy as np
import matplotlib as plt
import seaborn as sns
sns.set(style="whitegrid")
sns.set_style("ticks")
sns.set_context("paper", font_scale=1, rc={"lines.linewidth": 6})
sns.catplot(y = "Region",x = "Interest by subregion",data = sample)

图片:

如何使 y 标签更分散并具有更大的字体?

【问题讨论】:

    标签: data-visualization data-science


    【解决方案1】:

    尝试使用sns.figure(figsize(x,y))sns.set_context(context=None,font_scale=1)。 为这些参数尝试不同的值以获得最佳结果。

    【讨论】:

      猜你喜欢
      • 2021-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-20
      • 2020-11-27
      • 2020-09-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多