我正在尝试制作带有5个标签的角落图。每个标签都是一个包含1713个值的数组。看起来我有2个维度,但只有1个样本。如何增加样品数量?
输入:
# Labels: Teff, logg, [Fe/H], [Mg/Fe], and [Si/Fe]
import corner
import numpy as np
from astropy.io import fits
hdu1 = fits.open('partb_ASPCAP&cuts.fits')
data = hdu1[1].data
samples = np.vstack([data['Teff'],data['logg'],data['FE_H'],data['MG_FE'],data['SI_FE']])
print(len(samples.shape))
print(samples.T.shape)
figure = corner.corner(samples)
输出:error
角图(又称三角图)具有沿着外对角线的直方图(每个具有Teff的x轴或另一个标签并且具有概率的y轴)。内部曲线图是等高线图(每个都有一个标签的x轴和不同标签的y轴)。 example of corner plot with 4 labels
figure = corner.corner(samples.T)