import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter quarters = [1, 2, 3, 4] revenue = [12500, 18100, 23600, 31200] fig, ax = plt.subplots(layout="constrained") ax.plot(quarters, revenue, marker="o", linewidth=2)