image_output_1.png
import matplotlib.pyplot as plt

# create blank figure

fig, ax = plt.subplots()
plt.show()

# resize figure

fig, ax = plt.subplots(figsize=(10,10))
plt.show()

fig, ax = plt.subplots()
ax.set(xlim=[0.5, 4.5], ylim=[-2, 8], title='An Example Axes', ylabel='Y-Axis', xlabel='X-Axis')
plt.show()