sympy_p1 = sympy.plot(foo)
sympy_p2 = sympy.plot(bar)
matplotlib_fig = plt.figure()
sp1 = matplotlib_fig.add_subplot(121)
sp2 = matplotlib_fig.add_subplot(122)
sp1.add_collection(sympy_p1._backend.ax.get_children()[appropriate_index])
sp2.add_collection(sympy_p2._backend.ax.get_children()[appropriate_index])
matplotlib_fig.show()
Sympy: generate figure with multiple subplots