Module Import alias Import alias identifier ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub BinOpPow NameLoad Num Assign NameStore BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num AugAssignAdd NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword BinOpDiv Num BinOpPow NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword ListLoad Num Num keyword Call NameLoad keyword Str keyword Str keyword Str keyword Call NameLoad keyword Num keyword Str keyword Call NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A lmfit N/A numpy np matplotlib pyplot plt N/A x N/A N/A np linspace -4 4 N/A y N/A N/A np exp N/A N/A x 2 N/A noise N/A N/A N/A N/A np random randn N/A x size 0.1 N/A y noise N/A model_gaussian N/A N/A N/A lmfit models GaussianModel N/A N/A N/A model_gaussian guess y x x N/A fit_gaussian N/A N/A model_gaussian fit y x x weights N/A 1 N/A noise 2 N/A fig N/A N/A fit_gaussian plot fig_kws N/A dict figsize N/A 8 7 ax_fit_kws N/A dict title The gaussian fit initfmt k: datafmt ks fit_kws N/A dict lw 2 color red data_kws N/A dict ms 8 markerfacecolor white N/A N/A N/A fig set_tight_layout True N/A N/A N/A plt show