new line character problem rectified, but the graphs are still not getting drawn