带有triangle_plot的x和y标签的字体大小
我想增加三角图的x和y标签的字体大小。我在这个问题中尝试了:更改标签的大小在python 但这对我不起作用...这是我的代码,
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')
有人知道为什么吗?这是产生的数字作为证据,表明该字体很小
请如何增加字体?
I want to increase the fontsize of the x and y label of my triangle plot. I tried as in this question: Changing the size of labels of plots in python
but it's not working for me... here is my code
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
Does anyone know why? This is the produced figure as proof that the font is very small
How can I increase the font, please?
+ '\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')
Does anyone know why? This is the produced figure as proof that the font is very small
How can I increase the font, please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题在于
之前。
在解决问题之前将其放在
The problem was that
was after
putting it before solved the problem.