matplotlib vs pyplot code example
Example 1: interative mode matplotlib
import matplotlib.pyplot as plt
plt.ion()
plt.plot([1.6, 2.7])
Example 2: figure vs plot matplotlib
fig1, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)
import matplotlib.pyplot as plt
plt.ion()
plt.plot([1.6, 2.7])
fig1, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)