Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071d1b8 commit 95f4f47Copy full SHA for 95f4f47
1 file changed
examples/pylab_examples/stix_fonts_demo.py
@@ -13,9 +13,12 @@
13
r'$\mathrm{\mathbb{Blackboard \pi}}$',
14
r'$\mathbf{\mathbb{Blackboard \pi}}$',
15
r'$\mathfrak{Fraktur} \mathbf{\mathfrak{Fraktur}}$',
16
- r'$\mathscr{Script}$',
17
-# ur'Direct Unicode: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
18
- ]
+ r'$\mathscr{Script}$']
+
+if sys.maxunicode > 0xffff:
19
+ stests.append(
20
+ ur'Direct Unicode: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
21
+ )
22
23
from pylab import *
24
@@ -28,7 +31,7 @@ def doall():
28
31
axis([0, 3, -len(tests), 0])
29
32
yticks(arange(len(tests)) * -1)
30
33
for i, s in enumerate(tests):
- print (i, s)
34
+ print (i, s.encode("ascii", "backslashreplace"))
35
text(0.1, -i, s, fontsize=32)
36
37
savefig('stix_fonts_example')
0 commit comments