Like classes in java (if that means anything to anyone)? Can you have a document which handles all the graphing, another which handles the figures where you can call parts when you need them in your main document.
The reason I ask is that one of the things that trips me up about latex is I get totally lost trying to find bits of the document. I am trying to find a way to do it. Texmaker has some ways of figuring out where you are by letting you click on a section but it has other disadvantages and I would be interested if there are more possibilities that I have not tapped into yet.

standalonebundle? as described in outsourcing-tikz-code for example... – cmhughes Jan 30 '13 at 22:04