I think your code is missing the logic to connect the points, as scatter3D would only visualize the points, if I’m not mistaken.
Since this question isn’t really PyTorch-related, I would guess you might get a faster answer in other discussion boards / mailing lists.
I would also check repositories working on pose detection models, as they might already have code to visualize it.