(ax: Axes, keypoints: torch.Tensor, depth_cov: torch.Tensor | None, **plot_kwargs)
| 107 | @as_chain_func |
| 108 | @IgnoreException |
| 109 | def plot_keypoints(ax: Axes, keypoints: torch.Tensor, depth_cov: torch.Tensor | None, **plot_kwargs) -> Axes: |
| 110 | keypoints = keypoints.detach().cpu() |
| 111 | if depth_cov is not None: |
| 112 | ax.scatter( |
| 113 | keypoints[..., 0], keypoints[..., 1], |
| 114 | c=depth_cov.detach().cpu().numpy(), |
| 115 | cmap="plasma", plotnonfinite=True, edgecolors='none', |
| 116 | **plot_kwargs |
| 117 | ) |
| 118 | else: |
| 119 | ax.scatter(keypoints[..., 0], keypoints[..., 1], plotnonfinite=True, |
| 120 | **plot_kwargs) |
| 121 | return ax |
| 122 | |
| 123 | @as_chain_func |
| 124 | @IgnoreException |
nothing calls this directly
no outgoing calls
no test coverage detected