简体   繁体   中英

How to label axes in Matplotlib using LaTeX brackets?

How to label axes in Matplotlib using LaTeX expression $\\langle B_{\\mathrm{e}} \\rangle$ ? I need to label my axis with nice looking "<" and ">" LaTeX brackets.

尝试使用ax.set_ylabel(r'$\\langle B_{\\mathrm{e}} \\rangle$')标记Y轴或ax.set_title(r'$\\langle B_{\\mathrm{e}} \\rangle$')为轴的标题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM