8000 Fix rendering of mathtext · matplotlib/matplotlib@ec599f1 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ec599f1

Browse files
committed
Fix rendering of mathtext
1 parent 901299e commit ec599f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ def render_glyph(self, ox, oy, info):
192192
oy - info.metrics.ymin)
193193
else:
194194
font_util.draw_glyph_to_bitmap(
195-
self.image, ox, oy - ceil(info.metrics.iceberg), info.glyph)
195+
self.image,
196+
ox + info.metrics.xmin,
197+
oy - ceil(info.metrics.iceberg) + 1, info.glyph)
196198

197199
def render_rect_filled(self, x1, y1, x2, y2):
198200
if self.mode == 'bbox':

0 commit comments

Comments
 (0)
0