<s> """<STR_LIT>""" <EOL> from gi . repository import Gtk <EOL> from matplotlib . backends . backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas <EOL> from matplotlib . figure import Figure <EOL> import matplotlib . cm as cm <EOL> import numpy as np <EOL> class MyWindow ( Gtk . Window ) : <EOL> def __init__ ( self ) : <EOL> Gtk . Window . __init__ ( self , title = "<STR_LIT>" ) <EOL> self . connect ( "<STR_LIT>" , Gtk . main_quit ) <EOL> self . set_default_size ( <NUM_LIT> , <NUM_LIT> ) <EOL> self . box = Gtk . Box ( spacing = <NUM_LIT:6> , orientation = Gtk . Orientation . VERTICAL ) <EOL> self . add ( self . box ) <EOL> self . fig = Figure ( figsize = ( <NUM_LIT:10> , <NUM_LIT:10> ) , dpi = <NUM_LIT> ) <EOL> self . ax = self . fig . add_subplot ( <NUM_LIT> , polar = True ) <EOL> N = <NUM_LIT:20> <EOL> theta = np . linspace ( <NUM_LIT:0.0> , <NUM_LIT:2> * np . pi , N , endpoint = False ) <EOL> radii = <NUM_LIT:10> * np . random . rand ( N ) <EOL> width = np . pi / <NUM_LIT:4> * np . random . rand ( N ) <EOL> bars = self . ax . bar ( theta , radii , width = width , bottom = <NUM_LIT:0.0> ) <EOL> for r , bar in zip ( radii , bars ) : <EOL> bar . set_facecolor ( cm . jet ( r / <NUM_LIT> ) ) <EOL> bar . set_alpha ( <NUM_LIT:0.5> ) <EOL> self . canvas = FigureCanvas ( self . fig ) <EOL> self . box . pack_start ( self . canvas , True , True , <NUM_LIT:0> ) <EOL> self . button = Gtk . Button ( label = "<STR_LIT>" ) <EOL> self . button . connect ( "<STR_LIT>" , self . on_exit_clicked ) <EOL> self . box . pack_start ( self . button , False , False , <NUM_LIT:0> ) <EOL> def on_exit_clicked ( self , widget ) : <EOL> Gtk . main_quit ( ) <EOL> def main ( ) : <EOL> win = MyWindow ( ) <EOL> win . show_all ( ) <EOL> Gtk . main ( ) </s>
