1

I am doing regression analysis in pycaret, and plotted residuals and errors.

# create a model
bgr = create_model('gbr')

# residuals plot
plot_model(gbr, plot = 'residuals')

# errors plot
plot_model(gbr, plot = 'error')

is there a way I can plot this two graphs side by side?

korakot
  • 37,818
  • 16
  • 123
  • 144
  • Please provide a [Provide a Minimal, Reproducible Example (e.g. code, data, errors) as text](https://stackoverflow.com/help/minimal-reproducible-example) – Trenton McKinney Jul 12 '20 at 20:33

1 Answers1

0

Try plt.subplots(). See here: https://matplotlib.org/stable/gallery/subplots_axes_and_figures/subplots_demo.html

Frank
  • 156
  • 2
  • 6