⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accented_text.py

📁 非原创。很好的python例子
💻 PY
字号:
#!/usr/bin/env python"""matplotlib supports accented characters via TeX mathtextThe following accents are provided: \hat, \breve, \grave, \bar,\acute, \tilde, \vec, \dot, \ddot.  All of them have the same syntax,eg to make an overbar you do \bar{o} or to make an o umlaut you do\ddot{o}.  The shortcuts are also provided, eg: \"o \'e \`e \~n \.x\^y"""from pylab import *plot(range(10))title(r'$\ddot{o}\acute{e}\grave{e}\hat{O}\breve{i}\bar{A}\tilde{n}\vec{q}$', fontsize=20)# shorthand is also supported and curly's are optionalxlabel(r"""$\"o\ddot o \'e\`e\~n\.x\^y$""", fontsize=20)show()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -