We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf5303 commit 5440f3dCopy full SHA for 5440f3d
1 file changed
matplotlib_scalebar/dimension.py
@@ -25,9 +25,7 @@
25
"\u00b5": 1e-6,
26
"u": 1e-6,
27
"n": 1e-9,
28
- "Å": 1e-10,
29
"A": 1e-10,
30
- "angstrom": 1e-10,
31
"p": 1e-12,
32
"f": 1e-15,
33
"a": 1e-18,
@@ -129,7 +127,8 @@ def __init__(self):
129
127
if prefix == "\u00b5" or prefix == "u":
130
128
latexrepr = _LATEX_MU + "m$^{-1}$"
131
if prefix == "Å" or prefix == "A" or prefix == "angstrom":
132
- self.add_units("1/Å", 1 / factor)
+ latexrepr = "Å$^{-1}$"
+ self.add_units("1/A", 1 / factor, latexrepr)
133
else:
134
self.add_units("1/{0}m".format(prefix), 1 / factor, latexrepr)
135
0 commit comments