I have this code:
import matplotlib.pyplot as plt import numpy as np dat=[0,40] fig = plt.figure() ax = fig.add_subplot(111) ax2 = fig.add_subplot(211) Ln, =