about to detlete a pretty big section of this so I wanted to save
rounding up everything into functions automatically writing to files and taking a first step toward automating labels
adding some legends and prettier output with better antialiasing
close to final first version
deleting old code