#NEWLINE# def __init__( self , parent ) : #NEWLINE# #INDENT# wx . Panel . __init__ ( self , parent ) #NEWLINE# self . figure = Figure ( ) #NEWLINE# self . axes = self . figure . add_subplot ( 111 ) #NEWLINE# self . canvas = FigureCanvas ( self , ( - 1 ) , self . figure ) #NEWLINE# self . sizer = wx . BoxSizer ( wx . VERTICAL ) #NEWLINE# self . sizer . Add ( self . canvas , 1 , ( ( wx . LEFT | wx . TOP ) | wx . GROW ) ) #NEWLINE# self . SetSizer ( self . sizer ) #NEWLINE# self . Fit ( )