Curvature calc/plot