FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/examples/accented_text.py at transforms · gitj/matplotlib · GitHub
gitj
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
examples
/
accented_text.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (15 loc) · 612 Bytes
Breadcrumbs
matplotlib
/
examples
/
accented_text.py
Copy path
File metadata and controls
21 lines (15 loc) · 612 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
"""
matplotlib supports accented characters via TeX mathtext
The following accents are provided: \hat,
\b
reve, \grave,
\b
ar,
\a
cute,
\t
ilde,
\v
ec, \dot, \ddot. All of them have the same syntax,
eg to make an overbar you do
\b
ar{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 optional
xlabel
(
r"""$\"o\ddot o \'e\`e\~n\.x\^y$"""
,
fontsize
=
20
)
show
()
Back
|
FazBrowse Home
|
New Git URL