import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot([1, 2, 3, -3]) ax.set_xlabel("time") ax.set_ylabel("swag") plt.show()