Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e67c7d

Browse files
committed
BUG: Fix typo in _AnnotationBase
Value of "72" switched to "12" in d5a1a3d
1 parent 9c60c58 commit 1e67c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ def _get_xy_transform(self, renderer, s):
15441544
from matplotlib.transforms import Affine2D
15451545
if unit == "points":
15461546
# dots per points
1547-
dpp = self.figure.get_dpi() / 12.
1547+
dpp = self.figure.get_dpi() / 72.
15481548
tr = Affine2D().scale(dpp, dpp)
15491549
elif unit == "pixels":
15501550
tr = Affine2D()

0 commit comments

Comments
 (0)