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

Skip to content

Commit 7dc0493

Browse files
committed
Fix BboxBase.anchored for unicode argument
When 'c' argument was unicode, it was not detected as a string.
1 parent 396a644 commit 7dc0493

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)