plotting functions, dmvlogistic fits to CaL,need to look at SR now