【发布时间】:2020-02-20 11:07:32
【问题描述】:
我有一个简单的角图。让我们想象一下他们页面中的示例(取自here):
import corner
import numpy as np
ndim, nsamples = 2, 10000
np.random.seed(42)
samples = np.random.randn(ndim * nsamples).reshape([nsamples, ndim])
figure = corner.corner(samples)
现在我想问一下,我可以将这个完整的画布(共 3 个图)保存在一个 matplotlib 图中,以便我可以将这个图插入另一个更大的 matplotlib 图。
另外我还有一个问题,有没有办法将自定义图例/标题放在角落图上?
【问题讨论】:
-
不,这是不可能的(除非您在角源代码中更改 this line 以允许将具有更多轴的图形作为输入。)或者,您可以生成角图形,并添加其他稍后轴。
标签: matplotlib plot figure insets