Overlapping graphs of az.plot_trace()

You can update your plt.rcParams at the top of your scripts/notebooks as follows to avoid having to always call tight_layout:

import matplotlib.pyplot as plt
plt.rcParams.update({'figure.constrained_layout.use':True})

To be honest I’m not 100% clear on the difference between “constrained layout” and “tight layout”, but the results will be the same in this case.

3 Likes