tellurium.teio package¶
Submodules¶
tellurium.teio.latex module¶
Export utilities. Write to latex.
- class tellurium.teio.latex.LatexExport(rr, color=['blue', 'green', 'red', 'black'], xlabel='x', ylabel='y', legend=None, exportComplete=False, coorPerRow=6, saveto=None, exportType='pgfplot', fileName='Model', exportString='')[source]¶
Bases:
object
Class for exporting simulation to latex.
- saveToFile(result=None)[source]¶
Creates .tex and .txt files for plotting result of simulation with LaTeX. Outputs one file with code to be pasted into LaTeX, and one data file for each variable in results after the first.
Takes two arguments, results of simulation and name of file to be created. Setting self.exportClipboard to True also copies LaTeX code to clipboard, while setting self.exportComplete to True adds necessary code to build doc right away.
result = rr.simulate(0, 6, 20, [‘Time’, ‘S1’, ‘S2’]) p.export(result, model1)