daft-dev / daft

Render probabilistic graphical models using matplotlib
https://docs.daft-pgm.org
MIT License
674 stars 118 forks source link

Including external tex #55

Closed dfm closed 11 years ago

dfm commented 11 years ago

Hey @davidwhogg,

I'm trying to do a PGM with external LaTeX definitions. Your weak lensing example claims to do this but I can't seem to get it to work. Can you add your .tex file for this example to the repository so that I can try to diagnose?

Thanks!

dfm commented 11 years ago

P.S. I was able to get it to work with this syntax:

rc("text.latex", preamble=["\input{../vars.tex}"])
davidwhogg commented 11 years ago

woah totally confused. I don't have that file and weaklensing.py doesn't seem to depend on it. Is there something that does? That is, if I delete the usetex line with the weaklensing.tex reference, it still runs, right?

dfm commented 11 years ago

Yeah... I don't see anywhere where you would need it. Maybe we should just add another simple example.

davidwhogg commented 11 years ago

seriously duh. And we should fix the header to that one.

dfm commented 11 years ago

Fixed but see #4