Matplotlib Subplots

The subplots() function in pyplot module of matplotlib library is used to create a figure and a set of subplots.

Code :