How to Log a Matplotlib Figure to MLflow
· 6 min read
Charts explain a run better than numbers: a loss curve, predicted against actual values, a confusion matrix. mlflow.log_figure() saves a Matplotlib figure straight into the run, with no temporary file to create or clean up. This guide logs a chart as PNG and SVG, logs one from pyplot without leaking memory, and finds them in the MLflow UI.
