BF: removing matplotlib dependency