@@ -441,11 +441,7 @@ def unselect(self):
441441 self .IsSelected = False
442442
443443 def set_foreground (self , fg , isRGBA = None ):
444- """
445- Set the foreground color. fg can be a matlab format string, a
446- html hex color string, an rgb unit tuple, or a float between 0
447- and 1. In the latter case, grayscale is used.
448- """
444+ # docstring inherited
449445 # Implementation note: wxPython has a separate concept of pen and
450446 # brush - the brush fills any outline trace left by the pen.
451447 # Here we set both to the same colour - if a figure is not to be
@@ -460,9 +456,7 @@ def set_foreground(self, fg, isRGBA=None):
460456 self .unselect ()
461457
462458 def set_linewidth (self , w ):
463- """
464- Set the line width.
465- """
459+ # docstring inherited
466460 w = float (w )
467461 DEBUG_MSG ("set_linewidth()" , 1 , self )
468462 self .select ()
@@ -477,9 +471,7 @@ def set_linewidth(self, w):
477471 self .unselect ()
478472
479473 def set_capstyle (self , cs ):
480- """
481- Set the capstyle as a string in ('butt', 'round', 'projecting')
482- """
474+ # docstring inherited
483475 DEBUG_MSG ("set_capstyle()" , 1 , self )
484476 self .select ()
485477 GraphicsContextBase .set_capstyle (self , cs )
@@ -488,9 +480,7 @@ def set_capstyle(self, cs):
488480 self .unselect ()
489481
490482 def set_joinstyle (self , js ):
491- """
492- Set the join style to be one of ('miter', 'round', 'bevel')
493- """
483+ # docstring inherited
494484 DEBUG_MSG ("set_joinstyle()" , 1 , self )
495485 self .select ()
496486 GraphicsContextBase .set_joinstyle (self , js )
@@ -657,9 +647,7 @@ def Copy_to_Clipboard(self, event=None):
657647 wx .TheClipboard .Flush ()
658648
659649 def draw_idle (self ):
660- """
661- Delay rendering until the GUI is idle.
662- """
650+ # docstring inherited
663651 DEBUG_MSG ("draw_idle()" , 1 , self )
664652 self ._isDrawn = False # Force redraw
665653 # Triggering a paint event is all that is needed to defer drawing
@@ -668,59 +656,28 @@ def draw_idle(self):
668656 self .Refresh (eraseBackground = False )
669657
670658 def new_timer (self , * args , ** kwargs ):
671- """
672- Creates a new backend-specific subclass of
673- :class:`backend_bases.Timer`. This is useful for getting periodic
674- events through the backend's native event loop. Implemented only
675- for backends with GUIs.
676-
677- Other Parameters
678- ----------------
679- interval : scalar
680- Timer interval in milliseconds
681- callbacks : list
682- Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
683- will be executed by the timer every *interval*.
684-
685- """
659+ # docstring inherited
686660 return TimerWx (* args , ** kwargs )
687661
688662 def flush_events (self ):
663+ # docstring inherited
689664 wx .Yield ()
690665
691666 def start_event_loop (self , timeout = 0 ):
692- """
693- Start an event loop. This is used to start a blocking event
694- loop so that interactive functions, such as ginput and
695- waitforbuttonpress, can wait for events. This should not be
696- confused with the main GUI event loop, which is always running
697- and has nothing to do with this.
698-
699- This call blocks until a callback function triggers
700- stop_event_loop() or *timeout* is reached. If *timeout* is
701- <=0, never timeout.
702-
703- Raises RuntimeError if event loop is already running.
704- """
667+ # docstring inherited
705668 if hasattr (self , '_event_loop' ):
706669 raise RuntimeError ("Event loop already running" )
707670 timer = wx .Timer (self , id = wx .ID_ANY )
708671 if timeout > 0 :
709672 timer .Start (timeout * 1000 , oneShot = True )
710673 self .Bind (wx .EVT_TIMER , self .stop_event_loop , id = timer .GetId ())
711-
712674 # Event loop handler for start/stop event loop
713675 self ._event_loop = wx .GUIEventLoop ()
714676 self ._event_loop .Run ()
715677 timer .Stop ()
716678
717679 def stop_event_loop (self , event = None ):
718- """
719- Stop an event loop. This is used to stop a blocking event
720- loop so that interactive functions, such as ginput and
721- waitforbuttonpress, can wait for events.
722-
723- """
680+ # docstring inherited
724681 if hasattr (self , '_event_loop' ):
725682 if self ._event_loop .IsRunning ():
726683 self ._event_loop .Exit ()
@@ -780,6 +737,7 @@ def gui_repaint(self, drawDC=None, origin='WX'):
780737 }
781738
782739 def print_figure (self , filename , * args , ** kwargs ):
740+ # docstring inherited
783741 super ().print_figure (filename , * args , ** kwargs )
784742 # Restore the current view; this is needed because the artist contains
785743 # methods rely on particular attributes of the rendered figure for
0 commit comments