There are two main ways to create an axes in matplotlib: using pyplot, or using the object-oriented API.
Using pyplot:
import matplotlib.pyplot as plt
ax = plt.subplot(3, 2, 1) # 3 rows, 2 columns, the first subplot
Using the object-oriented API:
import matplotlib.pyplot as plt
fig = ...