adding general solution for photoperiod plot generation