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

Skip to content

Commit cd749d1

Browse files
Update lib/matplotlib/text.py
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 8190b12 commit cd749d1

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
@@ -1509,7 +1509,7 @@ def _get_xy_transform(self, renderer, s):
15091509
tr = Affine2D()
15101510
elif unit == "fontsize":
15111511
fontsize = self.get_size()
1512-
dpp = fontsize * self.figure.dpi / 72.
1512+
dpp = fontsize * self.figure.dpi / 72
15131513
tr = Affine2D().scale(dpp)
15141514
elif unit == "fraction":
15151515
w, h = bbox0.size

0 commit comments

Comments
 (0)