使用 matplotlib 在 x 轴下添加脚注 [英] Add footnote under the x-axis using matplotlib

查看:72
本文介绍了使用 matplotlib 在 x 轴下添加脚注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到合适的功能在情节中添加脚注.

I couldn't find the right function to add a footnote in my plot.

我想要的脚注有点像对图例中某一项的解释,但是太长了放在图例框中.因此,我想添加一个参考编号,例如[1],添加到图例项,并在图表底部的x轴下方添加脚注.

The footnote I want to have is something like an explanation of one item in the legend, but it is too long to put in the legend box. So, I'd like to add a ref number, e.g. [1], to the legend item, and add the footnote in the bottom of the plot, under the x-axis.

我应该使用哪个功能?谢谢!

Which function should I use? Thanks!

推荐答案

一种方法是只使用 plt.text(x,y,'text')

这篇关于使用 matplotlib 在 x 轴下添加脚注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆