>>> fig_, ax_ = metric.plot() .. plot:: :scale: 75 >>> # Example plotting multiple values >>> import torch >>> from torchmetrics.image import RootMeanSquaredErrorUsingSlidingWindow >>> metric = RootMeanSquaredErrorUsingSlidingWindow() >>> values = [ ] >>> for _ in range(10): ... values.append(metric(torch.rand(4, 3, 16, 16), torch.rand(4, 3, 16, 16))) >>> fig_, ax_ = metric.plot(values) )