This is the code that takes a Plots::Plot and creates the tikz code for generation.
Plots::Plot
See plots.pl for more details.