@@ -324,9 +324,12 @@ def create_hatch(self, hatch):
324324 return name
325325
326326 def get_canvas_width_height (self ):
327+ # docstring inherited
327328 return self .width * 72.0 , self .height * 72.0
328329
329330 def get_text_width_height_descent (self , s , prop , ismath ):
331+ # docstring inherited
332+
330333 if rcParams ['text.usetex' ]:
331334 texmanager = self .get_texmanager ()
332335 fontsize = prop .get_size_in_points ()
@@ -362,6 +365,7 @@ def get_text_width_height_descent(self, s, prop, ismath):
362365 return w , h , d
363366
364367 def flipy (self ):
368+ # docstring inherited
365369 return False
366370
367371 def _get_font_afm (self , prop ):
@@ -411,9 +415,11 @@ def get_image_magnification(self):
411415 return self .image_magnification
412416
413417 def option_scale_image (self ):
418+ # docstring inherited
414419 return True
415420
416421 def option_image_nocomposite (self ):
422+ # docstring inherited
417423 return not rcParams ['image.composite_image' ]
418424
419425 def _get_image_h_w_bits_command (self , im ):
@@ -423,6 +429,8 @@ def _get_image_h_w_bits_command(self, im):
423429 return h , w , bits , imagecmd
424430
425431 def draw_image (self , gc , x , y , im , transform = None ):
432+ # docstring inherited
433+
426434 h , w , bits , imagecmd = self ._get_image_h_w_bits_command (im )
427435 hexlines = b'\n ' .join (self ._hex_lines (bits )).decode ('ascii' )
428436
@@ -488,13 +496,15 @@ def _get_clip_path(self, clippath, clippath_transform):
488496 return pid
489497
490498 def draw_path (self , gc , path , transform , rgbFace = None ):
499+ # docstring inherited
491500 clip = rgbFace is None and gc .get_hatch_path () is None
492501 simplify = path .should_simplify and clip
493502 ps = self ._convert_path (path , transform , clip = clip , simplify = simplify )
494503 self ._draw_ps (ps , gc , rgbFace )
495504
496505 def draw_markers (
497506 self , gc , marker_path , marker_trans , path , trans , rgbFace = None ):
507+ # docstring inherited
498508
499509 if debugPS :
500510 self ._pswriter .write ('% draw_markers \n ' )
@@ -595,6 +605,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
595605 self ._path_collection_id += 1
596606
597607 def draw_tex (self , gc , x , y , s , prop , angle , ismath = 'TeX!' , mtext = None ):
608+ # docstring inherited
609+
598610 w , h , bl = self .get_text_width_height_descent (s , prop , ismath )
599611 fontsize = prop .get_size_in_points ()
600612 thetext = 'psmarker%d' % self .textcnt
@@ -632,6 +644,8 @@ def draw_tex(self, gc, x, y, s, prop, angle, ismath='TeX!', mtext=None):
632644 self .textcnt += 1
633645
634646 def draw_text (self , gc , x , y , s , prop , angle , ismath = False , mtext = None ):
647+ # docstring inherited
648+
635649 # local to avoid repeated attribute lookups
636650 write = self ._pswriter .write
637651 if debugPS :
@@ -734,6 +748,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
734748 self ._pswriter .write (ps )
735749
736750 def new_gc (self ):
751+ # docstring inherited
737752 return GraphicsContextPS ()
738753
739754 def draw_mathtext (self , gc , x , y , s , prop , angle ):
0 commit comments