Improvements to TikZ graph generation code. Minor modifications to SJT.