How to draw plots created by statsmodels plotting functions in the same figure

Viewed 2239

I have the following code

from statsmodels.graphics.factorplots import interaction_plot
import statsmodels.api as sm
import matplotlib.pyplot as plt

# ...

fig1 = interaction_plot(a, b, c, colors=['red', 'blue'], markers=['D', '^'], ms=10)
fig2 = sm.qqplot(model.resid, line='s')
plt.show()

which produces Figure 1 and Figure 2 each in a separate window.

How can I draw those two figures in the same window?

1 Answers
Related