8000 Fix PGF tests · matplotlib/matplotlib@7b3bd3e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b3bd3e

Browse files
committed
Fix PGF tests
1 parent 583d3fc commit 7b3bd3e

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,10 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
653653

654654
f = 1.0 / self.figure.dpi
655655
text_args = []
656-
if mtext and (angle == 0 or mtext.get_rotation_mode() == "anchor"):
656+
if mtext and (
657+
(angle == 0 or
658+
mtext.get_rotation_mode() == "anchor") and
659+
mtext.get_va() != "center_baseline"):
657660
# if text anchoring can be supported, get the original coordinates
658661
# and add alignment information
659662
x, y = mtext.get_transform().transform_point(mtext.get_position())
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
0