@@ -694,17 +694,17 @@ def _draw_text_as_path(self, gc, x, y, s, prop, angle, ismath):
694694
695695 def get_text_width_height_descent (self , s , prop , ismath ):
696696 """
697- get the width and height, and the offset from the bottom to the
698- baseline (descent ), in display coords of the string s with
699- :class:`~matplotlib.font_manager.FontProperties` prop
697+ Get the width, height, and descent ( offset from the bottom
698+ to the baseline ), in display coords, of the string *s* with
699+ :class:`~matplotlib.font_manager.FontProperties` * prop*
700700 """
701701 if ismath == 'TeX' :
702702 # todo: handle props
703703 size = prop .get_size_in_points ()
704704 texmanager = self ._text2path .get_texmanager ()
705705 fontsize = prop .get_size_in_points ()
706- w , h , d = texmanager .get_text_width_height_descent (s , fontsize ,
707- renderer = self )
706+ w , h , d = texmanager .get_text_width_height_descent (
707+ s , fontsize , renderer = self )
708708 return w , h , d
709709
710710 dpi = self .points_to_pixels (72 )
@@ -2151,7 +2151,6 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
21512151 # the backend to support file-like object, i'm going
21522152 # to leave it as it is. However, a better solution
21532153 # than stringIO seems to be needed. -JJL
2154- #result = getattr(self, method_name)
21552154 result = print_method (
21562155 io .BytesIO (),
21572156 dpi = dpi ,
@@ -2203,7 +2202,6 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
22032202 _bbox_inches_restore = None
22042203
22052204 try :
2206- #result = getattr(self, method_name)(
22072205 result = print_method (
22082206 filename ,
22092207 dpi = dpi ,
0 commit comments