Watch this Author's files
Hi, I found this very useful. However, I have one suggestion: in the line
ti(ti < 0) = 0.1
You should consider
ti(ti < 0.1) = 0.1
I had a graph where the top line of the outer box was being cutoff by saveas after I used tightfig, presumably because it had some ti in (0,0.1).