plt画函数
画函数功能包:matplotlib.mathtext
1.音符
命令 | 结果 |
---|---|
\acute a 或 \'a |
|
\bar a |
|
\breve a |
|
\ddot a 或 \"a |
|
\dot a 或 \.a |
|
\grave a 或 \ a` |
|
\hat a 或 \^a |
|
\tilde a 或 \~a |
|
\vec a |
|
\overline{abc} |
示例:
import matplotlib.pyplot as plt import numpy as np import matplotlib.mathtext as mathtext import matplotlib matplotlib.rc('image', origin='upper') parser = mathtext.MathTextParser("Bitmap") parser.to_png('test3.png',r'$\^a$',fontsize=30, dpi=100) img = plt.imread('test3.png') plt.imshow(img) plt.show() parser.to_png('test3.png',r'$\~a$',fontsize=30, dpi=100) img = plt.imread('test3.png') plt.imshow(img) plt.show()
2.字母符号
希腊字母 | ||
---|---|---|
\alpha |
\beta |
\chi |
\epsilon |
\eta |
\gamma |
\lambda |
\mu |
\nu |
\pi |
\psi |
\rho |
\theta |
\upsilon |
\varepsilon |
\varpi |
\varrho |
\varsigma |
\zeta |
\Delta |
\Gamma |
|
\Psi |
\Sigma |
|
|
import matplotlib.pyplot as plt import numpy as np import matplotlib.mathtext as mathtext import matplotlib matplotlib.rc('image', origin='upper') parser = mathtext.MathTextParser("Bitmap") parser.to_png('test3.png',r'$\alpha \beta \lambda$',fontsize=30, dpi=100) img = plt.imread('test3.png') plt.imshow(img) plt.show()
3.分割符号
/ |
[ |
\Downarrow |
\downarrow |
\langle |
\lceil |
\rangle |
\rceil |
\rfloor |
\vert |
\{ |
| |
4.数学符号
\bigcap |
\bigcup |
\bigodot |
\biguplus |
\bigvee |
\bigwedge |
\oint |
\prod |
\sum |
\Pr |
\arccos |
\arcsin |
\arg |
\cos |
\cosh |
\coth |
\csc |
\deg |
\dim |
\exp |
\gcd |
\inf |
\ker |
\lg |
\liminf |
\limsup |
\ln |
\max |
\min |
\sec |
\sinh |
\sup |
\tan |
\Bumpeq |
\Cap |
\Cup |
\Doteq |
\Join |
\Subset |
\Supset |
\Vdash |
\Vvdash |
\approx |
\approxeq |
\ast |
\asymp |
\backepsilon |
\backsim |
\backsimeq |
\barwedge |
\because |
\between |
\bigcirc |
\bigtriangledown |
\bigtriangleup |
\blacktriangleleft |
\blacktriangleright |
\bot |
\bowtie |
\boxdot |
\boxminus |
\boxplus |
\boxtimes |
\bullet |
\bumpeq |
\cap |
\cdot |
\circ |
\circeq |
\coloneq |
\cong |
\cup |
\curlyeqprec |
\curlyeqsucc |
\curlyvee |
\curlywedge |
\dag |
\dashv |
\ddag |
\diamond |
\div |
\divideontimes |
\doteq |
\doteqdot |
\dotplus |
\doublebarwedge |
\eqcirc |
\eqcolon |
\eqsim |
\eqslantgtr |
\eqslantless |
\equiv |
\fallingdotseq |
\frown |
\geq |
\geqq |
\geqslant |
\gg |
\ggg |
\gnapprox |
\gneqq |
\gnsim |
\gtrapprox |
\gtrdot |
\gtreqless |
\gtreqqless |
\gtrless |
\gtrsim |
\in |
\intercal |
\leftthreetimes |
\leq |
\leqq |
\leqslant |
\lessapprox |
\lessdot |
\lesseqgtr |
\lesseqqgtr |
\lessgtr |
\lesssim |
\ll |
\lll |
\lnapprox |
\lneqq |
\lnsim |
\ltimes |
\mid |
\models |
\mp |
\nVDash |
\nVdash |
\napprox |
\ncong |
\ne |
\neq |
\neq |
\nequiv |
\ngeq |
\ngtr |
\ni |
\nleq |
\nless |
\nmid |
\notin |
\nparallel |
\nprec |
\nsim |
\nsubset |
\nsubseteq |
\nsucc |
\nsupset |
\nsupseteq |
\ntriangleleft |
\ntrianglelefteq |
\ntriangleright |
\ntrianglerighteq |
\nvDash |
\nvdash |
\odot |
\ominus |
\oplus |
\oslash |
\otimes |
\parallel |
\perp |
\pitchfork |
\pm |
\prec |
\precapprox |
\preccurlyeq |
\preceq |
\precnapprox |
\precnsim |
\precsim |
\propto |
\rightthreetimes |
\risingdotseq |
\rtimes |
\sim |
\simeq |
\slash |
\smile |
\sqcap |
\sqcup |
\sqsubset |
\sqsubset |
\sqsubseteq |
\sqsupset |
\sqsupset |
\sqsupseteq |
\star |
\subset |
\subseteq |
\subseteqq |
\subsetneq |
\subsetneqq |
\succ |
\succapprox |
\succcurlyeq |
\succeq |
\succnapprox |
\succnsim |
\succsim |
\supset |
\supseteq |
\supseteqq |
\supsetneq |
\supsetneqq |
\therefore |
\times |
\top |
\triangleleft |
\trianglelefteq |
\triangleq |
\triangleright |
\trianglerighteq |
\uplus |
\vDash |
\varpropto |
\vartriangleleft |
\vartriangleright |
\vdash |
\vee |
\veebar |
\wedge |
\wr |
\Downarrow |
\Leftarrow |
|
\Leftrightarrow |
\Lleftarrow |
|
\Longleftarrow |
\Longleftrightarrow |
|
\Longrightarrow |
\Lsh |
|
\Nearrow |
\Nwarrow |
|
\Rightarrow |
\Rrightarrow |
|
\Rsh |
\Searrow |
|
\Swarrow |
\Uparrow |
|
\Updownarrow |
\circlearrowleft |
|
\circlearrowright |
\curvearrowleft |
|
\curvearrowright |
\dashleftarrow |
|
\dashrightarrow |
\downarrow |
|
\downdownarrows |
\downharpoonleft |
|
\downharpoonright |
\hookleftarrow |
|
\hookrightarrow |
\leadsto |
|
\leftarrow |
\leftarrowtail |
|
\leftharpoondown |
\leftharpoonup |
|
\leftleftarrows |
\leftrightarrow |
|
\leftrightarrows |
\leftrightharpoons |
|
\leftrightsquigarrow |
\leftsquigarrow |
|
\longleftarrow |
\longleftrightarrow |
|
\longmapsto |
\longrightarrow |
|
\looparrowleft |
\looparrowright |
|
\mapsto |
\multimap |
|
\nLeftarrow |
\nLeftrightarrow |
|
\nRightarrow |
\nearrow |
|
\nleftarrow |
\nleftrightarrow |
|
\nrightarrow |
\nwarrow |
|
\rightarrow |
\rightarrowtail |
|
\rightharpoondown |
\rightharpoonup |
|
\rightleftarrows |
\rightleftarrows |
|
\rightleftharpoons |
\rightleftharpoons |
|
\rightrightarrows |
\rightrightarrows |
|
\rightsquigarrow |
\searrow |
|
\swarrow |
\to |
|
\twoheadleftarrow |
\twoheadrightarrow |
|
\uparrow |
\updownarrow |
|
\updownarrow |
\upharpoonleft |
|
\upharpoonright |
\upuparrows |
\$ |
\AA |
\Finv |
\Game |
\Im |
\P |
\Re |
\S |
\angle |
\backprime |
\bigstar |
\blacksquare |
\blacktriangle |
\blacktriangledown |
\cdots |
\checkmark |
\circledR |
\circledS |
\clubsuit |
\complement |
\copyright |
\ddots |
\diamondsuit |
\ell |
\emptyset |
\eth |
\exists |
\flat |
\forall |
\hbar |
\heartsuit |
\hslash |
\iiint |
\iint |
\iint |
\imath |
\infty |
\jmath |
\ldots |
\measuredangle |
\natural |
\neg |
\nexists |
\oiiint |
\partial |
\prime |
\sharp |
\spadesuit |
\sphericalangle |
\ss |
\triangledown |
\varnothing |
\vartriangle |
\vdots |
\wp |
\yen |