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 9ff3e8f commit 6ff73a1Copy full SHA for 6ff73a1
lib/matplotlib/_mathtext_data.py
@@ -460,6 +460,18 @@
460
461
uni2type1 = {v: k for k, v in type12uni.items()}
462
463
+# The script below is to sort and format the tex2uni dict
464
+
465
+## For decimal values: int(hex(v), 16)
466
+# newtex = {k: hex(v) for k, v in tex2uni.items()}
467
+# sd = dict(sorted(newtex.items(), key=lambda item: item[0]))
468
+#
469
+## For formatting the sorted dictionary with proper spacing
470
+## the value '24' comes from finding the longest string in
471
+## the newtex keys with len(max(newtex, key=len))
472
+# for key in sd:
473
+# print("{0:24} : {1: <s},".format("'" + key + "'", sd[key]))
474
475
tex2uni = {
476
'#' : 0x23,
477
'$' : 0x24,
0 commit comments