@@ -446,11 +446,7 @@ def unselect(self):
446446 self .IsSelected = False
447447
448448 def set_foreground (self , fg , isRGBA = None ):
449- """
450- Set the foreground color. fg can be a matlab format string, a
451- html hex color string, an rgb unit tuple, or a float between 0
452- and 1. In the latter case, grayscale is used.
453- """
449+ # docstring inherited
454450 # Implementation note: wxPython has a separate concept of pen and
455451 # brush - the brush fills any outline trace left by the pen.
456452 # Here we set both to the same colour - if a figure is not to be
@@ -465,9 +461,7 @@ def set_foreground(self, fg, isRGBA=None):
465461 self .unselect ()
466462
467463 def set_linewidth (self , w ):
468- """
469- Set the line width.
470- """
464+ # docstring inherited
471465 w = float (w )
472466 DEBUG_MSG ("set_linewidth()" , 1 , self )
473467 self .select ()
@@ -482,9 +476,7 @@ def set_linewidth(self, w):
482476 self .unselect ()
483477
484478 def set_capstyle (self , cs ):
485- """
486- Set the capstyle as a string in ('butt', 'round', 'projecting')
487- """
479+ # docstring inherited
488480 DEBUG_MSG ("set_capstyle()" , 1 , self )
489481 self .select ()
490482 GraphicsContextBase .set_capstyle (self , cs )
@@ -493,9 +485,7 @@ def set_capstyle(self, cs):
493485 self .unselect ()
494486
495487 def set_joinstyle (self , js ):
496- """
497- Set the join style to be one of ('miter', 'round', 'bevel')
498- """
488+ # docstring inherited
499489 DEBUG_MSG ("set_joinstyle()" , 1 , self )
500490 self .select ()
501491 GraphicsContextBase .set_joinstyle (self , js )
@@ -662,9 +652,7 @@ def Copy_to_Clipboard(self, event=None):
662652 wx .TheClipboard .Flush ()
663653
664654 def draw_idle (self ):
665- """
666- Delay rendering until the GUI is idle.
667- """
655+ # docstring inherited
668656 DEBUG_MSG ("draw_idle()" , 1 , self )
669657 self ._isDrawn = False # Force redraw
670658 # Triggering a paint event is all that is needed to defer drawing
@@ -673,59 +661,28 @@ def draw_idle(self):
673661 self .Refresh (eraseBackground = False )
674662
675663 def new_timer (self , * args , ** kwargs ):
676- """
677- Creates a new backend-specific subclass of
678- :class:`backend_bases.Timer`. This is useful for getting periodic
679- events through the backend's native event loop. Implemented only
680- for backends with GUIs.
681-
682- Other Parameters
683- ----------------
684- interval : scalar
685- Timer interval in milliseconds
686- callbacks : list
687- Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
688- will be executed by the timer every *interval*.
689-
690- """
664+ # docstring inherited
691665 return TimerWx (* args , ** kwargs )
692666
693667 def flush_events (self ):
668+ # docstring inherited
694669 wx .Yield ()
695670
696671 def start_event_loop (self , timeout = 0 ):
697- """
698- Start an event loop. This is used to start a blocking event
699- loop so that interactive functions, such as ginput and
700- waitforbuttonpress, can wait for events. This should not be
701- confused with the main GUI event loop, which is always running
702- and has nothing to do with this.
703-
704- This call blocks until a callback function triggers
705- stop_event_loop() or *timeout* is reached. If *timeout* is
706- <=0, never timeout.
707-
708- Raises RuntimeError if event loop is already running.
709- """
672+ # docstring inherited
710673 if hasattr (self , '_event_loop' ):
711674 raise RuntimeError ("Event loop already running" )
712675 timer = wx .Timer (self , id = wx .ID_ANY )
713676 if timeout > 0 :
714677 timer .Start (timeout * 1000 , oneShot = True )
715678 self .Bind (wx .EVT_TIMER , self .stop_event_loop , id = timer .GetId ())
716-
717679 # Event loop handler for start/stop event loop
718680 self ._event_loop = wx .GUIEventLoop ()
719681 self ._event_loop .Run ()
720682 timer .Stop ()
721683
722684 def stop_event_loop (self , event = None ):
723- """
724- Stop an event loop. This is used to stop a blocking event
725- loop so that interactive functions, such as ginput and
726- waitforbuttonpress, can wait for events.
727-
728- """
685+ # docstring inherited
729686 if hasattr (self , '_event_loop' ):
730687 if self ._event_loop .IsRunning ():
731688 self ._event_loop .Exit ()
@@ -785,6 +742,7 @@ def gui_repaint(self, drawDC=None, origin='WX'):
785742 }
786743
787744 def print_figure (self , filename , * args , ** kwargs ):
745+ # docstring inherited
788746 super ().print_figure (filename , * args , ** kwargs )
789747 # Restore the current view; this is needed because the artist contains
790748 # methods rely on particular attributes of the rendered figure for
0 commit comments