def plot_MCMC_results(xdata, ydata, trace, colors='k'):
 (fig, ax) = plt.subplots(1, 2, figsize=(10, 4))
 plot_MCMC_trace(ax[0], xdata, ydata, trace, True, colors=colors)
 plot_MCMC_model(ax[1], xdata, ydata, trace)

def plot_MCMC_results ( xdata , ydata , trace , colors = 'k' ) : ( fig , ax ) = plt . subplots ( 1 , 2 , figsize = ( 10 , 4 ) ) plot_MCMC_trace ( ax [ 0 ] , xdata , ydata , trace , True , colors = colors ) plot_MCMC_model ( ax [ 1 ] , xdata , ydata , trace )
plot both the trace and the model together .