Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix bug in _AnnotationBase #1620

Merged
merged 1 commit into from

2 participants

@tonysyu

Value of "72" switched to "12" in d5a1a3d (EDIT: here's a better link: d5a1a3d#L0R1547). As a result, one of the annotation demos looks like this:

annotate_bug

instead of this:

annotate_correct

@tonysyu tonysyu BUG: Fix typo in _AnnotationBase
Value of "72" switched to "12" in d5a1a3d
1e67c7d
@pelson
Collaborator

Good spot @tonysyu!

@pelson pelson merged commit 1787a1a into matplotlib:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 22, 2012
  1. @tonysyu

    BUG: Fix typo in _AnnotationBase

    tonysyu authored
    Value of "72" switched to "12" in d5a1a3d
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/matplotlib/text.py
View
2  lib/matplotlib/text.py
@@ -1544,7 +1544,7 @@ def _get_xy_transform(self, renderer, s):
from matplotlib.transforms import Affine2D
if unit == "points":
# dots per points
- dpp = self.figure.get_dpi() / 12.
+ dpp = self.figure.get_dpi() / 72.
tr = Affine2D().scale(dpp, dpp)
elif unit == "pixels":
tr = Affine2D()
Something went wrong with that request. Please try again.