from torchmetrics.aggregation import MinMetric metric = MinMetric() metric.update([1, 2, 3]) fig_, ax_ = metric.plot()