from pathlib import Path import matplotlib import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot(["Jan", "Feb", "Mar"], [4, 7, 6], marker="o") ax.set_title("Conda Matplotlib smoke test") ax.set_xlabel("Month") ax.set_ylabel("Value") output = Path("conda-matplotlib-smoke.png") fig.savefig(output, dpi=160) plt.close(fig) print(f"matplotlib: {matplotlib.__version__}") print(f"saved: {output}") print(f"bytes: {output.stat().st_size}")