diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index 56b763698c63..7c10337767eb 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -585,8 +585,7 @@ def draw(self, renderer): if self.get_path_effects(): for path_effect in self.get_path_effects(): path_effect.draw_tex(renderer, gc, x, y, clean_line, - self._fontproperties, angle, - mtext=self) + self._fontproperties, angle) else: renderer.draw_tex(gc, x, y, clean_line, self._fontproperties, angle, mtext=self) @@ -605,7 +604,7 @@ def draw(self, renderer): for path_effect in self.get_path_effects(): path_effect.draw_text(renderer, gc, x, y, clean_line, self._fontproperties, angle, - ismath=ismath, mtext=self) + ismath=ismath) else: renderer.draw_text(gc, x, y, clean_line, self._fontproperties, angle,