line to logit plotting gist