Calculation of contact angle

Continuing the discussion from I want to calculate 2d density profile:

I want to calculate the contact angle using density profile calculations for a droplet containing around 100,000 atoms on a graphene surface. How can I proceed further with the contact angle calculation?

This is not a question related to LAMMPS, rather how you post process the density profile output from the simulation. It’s up to you to decide how to calculate the contact angle, or whatever quantities of your interest, from the simulation output.