x 和 y 标签的字体大小 triangle_plot

Font size of x and y label with triangle_plot

我想增加三角形图的 x 和 y 标签的字体大小。我试过这个问题: 但它对我不起作用...这是我的代码

import getdist.plots as gdplt
from getdist.mcsamples import loadMCSamples
from getdist.mcsamples import MCSamplesFromCobaya
from getdist import plots, MCSamples
.
.
.
names2 = ["p1", "p2", "p3", "p4", "p5", "p6", 'p7']
labels2 =  my_head_new[2:9]
samples2 = MCSamples(samples = sample[burn:,2:9], names = names2, labels = labels2)#, settings={'smooth_scale_2D':0.3})
plt.figure()
g = plots.getSubplotPlotter()
g.triangle_plot(samples2, filled=True)
g.settings.lab_fontsize = 40
g.settings.axes_fontsize = 40
plt.suptitle(r'Test92: vanilla + $\Omega_k$' + '\n nlive: 10d \n log(Z)= -315.98598 $\pm$ 0.66455', ha ='center', va='bottom', fontsize = 25)
plt.savefig('plot_triangle_vanilla_92_burned.png', dpi=300, bbox_inches='tight')
plt.close('all')

有谁知道为什么?这是生成的图,证明字体很小

请问如何增大字体?

问题在于

g.settings.lab_fontsize = 40
g.settings.axes_fontsize = 40

之后

g.triangle_plot(samples2, filled=True)

放在前面解决问题