You can also use a simple yet powerful tool called xmgrace to plot .xvg files generated from gromacs. It's perfect for visualizing data from molecular dynamics simulations and offers a lot of options for tweaking the plots,colors, labels, legends, and analysis aas well. Highly recommended for publication quality graphics.
Read more : https://plasma-gate.weizmann.ac.il/Grace/
Installation is pretty straight forward : sudo apt install grace
You also have something similar for windows.