added stem plot formatting function