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

Skip to content

Commit ce0c0ae

Browse files
committed
Merge pull request #636 from tonysyu/fix-transforms-unicode
Fix BboxBase.anchored for unicode literals
2 parents b1c4d4a + 7dc0493 commit ce0c0ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def anchored(self, c, container = None):
518518
if container is None:
519519
container = self
520520
l, b, w, h = container.bounds
521-
if isinstance(c, str):
521+
if isinstance(c, basestring):
522522
cx, cy = self.coefs[c]
523523
else:
524524
cx, cy = c

0 commit comments

Comments
 (0)