I generate data plots in my LaTeX documentation using a combination of TikZ and
pgfplots. Many of the plots are generated using script files which can also include the raw data if data is being plotted. Is there anyway to embed the script files in the plot itself (these could be
pgfplots scripts or python code etc)?
The idea is that if someone obtains the pdf file they can extract the script and/or data that actually generated the plot and therefore will be able to reproduce the figure themselves and have at hand the original data that was used.
I saw the message on
pdfcomment and it looks very promising. Would
pdfcomment be a good way to embed text in plots or are other other possible approaches?
A comment on those who might suggest why not just supply the raw LaTeX file. These documents get submitted to journals, archives (e.g. arXiv) and other repositories where the raw LaTeX file cannot usually be included with the submission.