Re: python, pythontex and plots

2013-09-24 Thread Piet van Oostrum
chitt...@uah.edu writes: > True, I did not explain what I was trying to do. > > pythontex is a package that allows the inclusion of python code within a > LaTeX document - (sort of like python.sty, but IMO, better) - I use > it along with noweb to create documents that contain documentation, > cod

Re: python, pythontex and plots

2013-09-23 Thread chitturk
True, I did not explain what I was trying to do. pythontex is a package that allows the inclusion of python code within a LaTeX document - (sort of like python.sty, but IMO, better) - I use it along with noweb to create documents that contain documentation, code and output of the code - and python

Re: python, pythontex and plots

2013-09-22 Thread rusi
Take a look at babel http://www.cs.unm.edu/~eschulte/data/CISE-13-3-SciProg.pdf http://orgmode.org/worg/org-contrib/babel/intro.html Its my impression that babel supports everything and more that pylatex does ...the catch is that its under emacs...!! -- https://mail.python.org/mailman/listinfo/p

Re: python, pythontex and plots

2013-09-22 Thread Steven D'Aprano
chitturk, you will probably get better answers if you actually explain your question rather than writing as if we can read your mind. More comments below: On Sun, 22 Sep 2013 19:16:35 -0700, chitturk wrote: > 1) The file is LaTeX > 2) the % means LaTeX will ignore it. Shouldn't you ask this on

Re: python, pythontex and plots

2013-09-22 Thread chitturk
1) The file is LaTeX 2) the % means LaTeX will ignore it. 3) The question was about using pythontex with LaTeX 4) I included the file so you (OK, others) could see what I was trying 5) The problem had to do with accessing a file name within the python script using \py{outputfile} 6) pythontex

Re: python, pythontex and plots

2013-09-22 Thread Steven D'Aprano
I don't usually top post, but for this I'll make an exception because I have *no idea* what any of your post means. Are you actually asking a question? I can't see a question mark in it, so there's no explicit question. Are you just sharing something interesting you have learned? Expecting us t

python, pythontex and plots

2013-09-22 Thread chitturk
\documentclass[12pt]{article} \usepackage{graphicx} \usepackage{wrapfig} % Allows in-line images \usepackage{pythontex} \setpythontexworkingdir{.} \begin{document} This is an example of using pythontex \begin{pycode} import pylab as p import numpy as np x = np.linspace(0.0,1.0,10) y = 2.0*x +