| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Using accented text in matplotlib | ||
| ================================= | ||
|
|
||
| Matplotlib supports accented characters via TeX mathtext. |
There was a problem hiding this comment.
Also supported through regular Unicode characters, though that's not shown here.
Sorry, something went wrong.
There was a problem hiding this comment.
I am 👍 on making this file utf-8 encoded and adding some accented characters.
Sorry, something went wrong.
There was a problem hiding this comment.
Perhaps merge it with unicode_demo.py then? See also #8083.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM 👍
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
|
👍 done. nb. I am just ignoring backend_driver for now, since one of my other PRs will get rid of needing to specify tests one by one and manually keeping track of them. |
Sorry, something went wrong.
| ax.set_title(r'$\ddot{o}\acute{e}\grave{e}\hat{O}' | ||
| r'\breve{i}\bar{A}\tilde{n}\vec{q}$', fontsize=20) | ||
|
|
||
| # Shorthand is also supported and curly's are optional |
There was a problem hiding this comment.
"curlies" perhaps?
Sorry, something went wrong.
There was a problem hiding this comment.
attn @dstansby
Sorry, something went wrong.
There was a problem hiding this comment.
curly braces?
Sorry, something went wrong.
| # Unicode demo | ||
| fig, ax = plt.subplots() | ||
| ax.set_title('Développés et fabriqués') | ||
| ax.set_xlabel("réactivité nous permettent d'être sélectionnés et adoptés") |
There was a problem hiding this comment.
Actually both French sentences are meaningless. If we want to keep some foreign languages, I can propose
GISCARD CHAHUTÉ À L'ASSEMBLÉE LE COUP DE DÉ DE DE GAULLE
(famous examples where keeping accents on caps is needed for the sentence to make any sense) :-)
Sorry, something went wrong.
There was a problem hiding this comment.
Buffalo buffalo buffalo buffalo ?
Sorry, something went wrong.
There was a problem hiding this comment.
I guess English would benefit from diacritics too...
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the suggestions!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I thought I'd kick off the docathon by moving and cleaning the first example in pylab_examples.