tperrier / infx_598c

Class project for INFX 598C Winter 2015
0 stars 0 forks source link

Plotting: plot_regress_exog and use draw() #2

Closed tperrier closed 9 years ago

tperrier commented 9 years ago

We need to make a function that makes plots like this using graphics.plot_regress_exog.

We really only want the top two graphs, not the bottom two. The top one comes from plot_fit but I can't figure out the call for the second graph. It looks like line 205 in regressionplots.py is what makes the call.

Also, plt.draw() is similar to plt.show() except that it doesn't block. As long as you have code.interact() going then this is a much better option.

fahadp commented 9 years ago

I have pushed some code that include following functions: def get_fitted_graph(df,features=['median','sd'],label='HIV') def get_residue_graph(df,features=['median','sd'],label='HIV',exog_feature='median')

Example: get_fitted_graph(hiv) get_residue_graph(hiv,'median') plt.show() #You need still need to call show() once after all the draw().

fitted_graph residue_graph