【发布时间】:2020-01-14 19:11:27
【问题描述】:
我非常喜欢在 OOP 风格中使用 matplotlib:
f, axarr = plt.subplots(2, sharex=True)
axarr[0].plot(...)
axarr[1].plot(...)
这样可以更轻松地跟踪多个图形和子图。
问题:如何以这种方式使用seaborn?或者,如何将this example 更改为 OOP 样式?如何判断 seaborn 绘图函数,如 lmplot 哪个 Figure 或 Axes 它绘图?
【问题讨论】:
-
相关:This issue 和 this answer 寻求一种可能的解决方法,这将允许创建一个海底图形并将所有轴移动到一个子图网格。
标签: python oop matplotlib seaborn