Question: what is fig ax = plt.subplots()?
Answer: Matplotlib - Subplots() Function The function returns a figure object and a tuple containing axes objects equal to nrows*ncols. Each axes object is accessible by its index. Here we create a subplot of 2 rows by 2 columns and display 4 different plots in each subplot. import matplotlib. pyplot as plt fig,a = plt.