testing plot generation code