import matplotlib.pyplot as plt years = [2022, 2023, 2024, 2025, 2026] requests = [250, 1800, 12600, 94000, 710000] fig, ax = plt.subplots(layout="constrained") ax.plot(years, requests, marker="o") ax.set_yscale("log") ax.set_xticks(years) ax.set_xlabel("Year") ax.set_ylabel("Requests") ax.set_title("Requests by year") ax.grid(True, which="both", axis="y", color="0.9") fig.savefig("requests-log-axis.png", dpi=150) print(f"x scale: {ax.get_xscale()}") print(f"y scale: {ax.get_yscale()}") print("saved: requests-log-axis.png")