I'd suggest you not try and do the visualization from within your code unless that is the focus of your efforts (which it seems is not the case). Since there are plenty of software that exist for this purpose already (gnuplot, R, matlab, etc.) I believe it would be better if you formatted the data within your program and passed that data along to something better suited to do the visualization.
L7Sqr
Practically a Posting Shark
849 posts since Feb 2011
Reputation Points: 253
Solved Threads: 155
Skill Endorsements: 7