Module Assign NameStore Str Import alias Import alias Import alias ImportFrom alias identifier Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpPow NameLoad Num Assign NameStore BinOpDiv Num BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults ListComp BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpDiv BinOpMult Num BinOpPow BinOpSub NameLoad NameLoad Num BinOpMult Num NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad BinOpMult Num NameLoad BinOpAdd NameLoad BinOpMult Num NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A __author__ chris N/A argparse N/A sys N/A math matplotlib pyplot plt N/A numpy np N/A parser N/A N/A argparse ArgumentParser description This will plot a gaussian distribution with the given parameters. N/A N/A N/A parser add_argument --mean help The mean of the gaussian. type float required True N/A N/A N/A parser add_argument --std help The standard deviation (width) of the gaussian. type float required True main N/A N/A N/A N/A N/A args N/A N/A parser parse_args N/A u N/A args mean N/A s N/A abs N/A args std N/A variance N/A s 2 N/A amplitude N/A 1 N/A s N/A N/A math sqrt N/A 2 N/A math pi N/A fit N/A N/A N/A x N/A N/A N/A amplitude N/A N/A math exp N/A N/A -1 N/A N/A xi u 2 N/A 2 variance N/A xi x N/A X N/A N/A np linspace N/A u N/A 4 s N/A u N/A 4 s 100 N/A Y N/A fit X N/A N/A N/A plt plot X Y N/A N/A N/A plt title N/A N/A Gaussian distribution with mu={0:.2f}, sigma={1:.2f} format u s N/A N/A N/A plt savefig gaussian.png N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main