In analysing the conical pendulum, it can be shown that the period is given by T=2pi.sqrt(L.cos(phi)/g) and that therefore, g = 4.pi^2.L.(cos(phi)/T^2).
L = pendulum length, phi is measured at the top of the pendulum (at the point of suspension).
Graphing cos(phi) vs T^2 should produce...