【问题标题】:Hue in Seaborn plots covers the main plot...creating problem [duplicate]Seaborn 情节中的色调涵盖了主要情节......造成问题 [重复]
【发布时间】:2020-11-11 21:38:13
【问题描述】:

每当我尝试在 seaborn 中使用色调功能时,如果色调中使用的列具有较小的值,它就可以正常工作。但如果值较多,它会覆盖/遮住主图。无论如何要保持/定位色调列值细节不在主图的顶部。

【问题讨论】:

    标签: python pandas data-visualization seaborn scatter-plot


    【解决方案1】:

    我相信最简单的解决方案就是扩大无花果的大小,因为情节会占用更小的相对大小。

    在我看来,Seaborn 不能很好地处理传说。您可以使用matplotlib 函数编辑图例:matplotlib's legend guide

    一些可能的解决方案:

    1. 将图例移到外面:Move legend outside figure in seaborn tsplot
    2. 调整绘图大小:How to move the legend in Seaborn FacetGrid outside of the plot?
    3. 图例中较小的文字(见第一个答案):How to put the legend out of the plot

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-30
      • 2019-02-02
      • 1970-01-01
      • 1970-01-01
      • 2021-11-03
      • 2020-02-14
      相关资源
      最近更新 更多