Matplotlib focuses on OOP principles and domain modeling vs. visualization workflows. It violates the simple things are simple rule but follows complex things are possible. You really need a layer above it, such as Streamlit