Adding matplotlib dependency