compute` and plot that result. ax: An matplotlib axis object. If provided will add plot to that axis Returns: Figure and Axes object Raises: ModuleNotFoundError: If `matplotlib` is not installed .. plot:: :scale: 75 >>> # Example plotting a single value >>> import torch >>> from torchmetrics.nominal import FleissKappa >>> metric = FleissKappa(mode="probs") >>> metric.update(torch.randn(100, 5, 10).softmax(dim=1)) >>> fig_, ax_ = metric.plot() .. plot:: :scale: 75 >>> # Example plotting multiple values >>> import torch >>> from torchmetrics.nominal import FleissKappa >>> metric = FleissKappa(mode="probs") >>> values = [ ] >>> for _ in range(10): ... values.append(metric(torch.randn(100, 5, 10).softmax(dim=1))) >>> fig_, ax_ = metric.plot(values) )