Trajectory analysis in gromacs

GROMACS version:
GROMACS modification: No
Dear all
I want to do trajectory analyze for diffusion of a single water like this picture. unfortunately, I dont know how to do that. Can you please help me? what is the command for that to get trajectory like this.

thank you.

Extract coordinates with gmx traj and plot in whatever software allows you to do the 3D plots like this (gnuplot maybe?)

Thank you Dr lemkul. I did it.