<s> """<STR_LIT>""" <EOL> import matplotlib <EOL> from pylatex import Document , Package , Section , Figure , NoEscape <EOL> matplotlib . use ( '<STR_LIT>' ) <EOL> import matplotlib . pyplot as plt <EOL> def main ( fname , width , * args , ** kwargs ) : <EOL> doc = Document ( fname ) <EOL> doc . packages . append ( Package ( '<STR_LIT>' , options = [ '<STR_LIT>' , '<STR_LIT>' ] ) ) <EOL> doc . append ( '<STR_LIT>' ) <EOL> with doc . create ( Section ( '<STR_LIT>' ) ) : <EOL> doc . append ( '<STR_LIT>' ) <EOL> with doc . create ( Figure ( position = '<STR_LIT>' ) ) as plot : <EOL> plot . add_plot ( width = NoEscape ( width ) , * args , ** kwargs ) <EOL> plot . add_caption ( '<STR_LIT>' ) <EOL> doc . append ( '<STR_LIT>' ) <EOL> doc . append ( '<STR_LIT>' ) <EOL> doc . generate_pdf ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> x = [ <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT:4> , <NUM_LIT:5> , <NUM_LIT:6> ] <EOL> y = [ <NUM_LIT:15> , <NUM_LIT:2> , <NUM_LIT:7> , <NUM_LIT:1> , <NUM_LIT:5> , <NUM_LIT:6> , <NUM_LIT:9> ] <EOL> plt . plot ( x , y ) <EOL> main ( '<STR_LIT>' , r'<STR_LIT>' , dpi = <NUM_LIT> ) <EOL> main ( '<STR_LIT>' , r'<STR_LIT>' , facecolor = '<STR_LIT:b>' ) </s>
