相关疑难解决方法(0)

在seaborn tsplot中将图例移到图外

我想创建一个时间序列图,使用seaborn.tsplot类似于此示例中的tsplot文档,但图例移到右侧,图中.

例

基于seaborn的timeseries.py中的 339-340行,看起来seaborn.tsplot目前不允许直接控制图例放置:

    if legend:
        ax.legend(loc=0, title=legend_name)
Run Code Online (Sandbox Code Playgroud)

是否有matplotlib解决方法?我正在使用seaborn 0.6-dev.

matplotlib seaborn

37
推荐指数
5
解决办法
4万
查看次数

标签 统计

matplotlib ×1

seaborn ×1