Tests to matplotlib create graph class