I really wanted to try daft ( http://daft-pgm.org/ ), and thanks to this, I found out that latex functionality does not work in matplotlib.
Paste this example into the daft website ( http://daft-pgm.org/examples/nocircles/ ):
from matplotlib import rc rc("font", family="serif", size=12) rc("text", usetex=True) import daft pgm = daft.PGM([3.6, 2.4], origin = [1.15, 0.8], node_ec="none") pgm.add_node(daft.Node("cloudy", r"cloudy", 3, 3)) pgm.add_node(daft.Node("rain", r"rain", 2, 2)) pgm.add_node(daft.Node("sprinkler", r"sprinkler", 4, 2)) pgm.add_node(daft.Node("wet", r"grass wet", 3, 1)) pgm.add_edge("cloudy", "rain") pgm.add_edge("cloudy", "sprinkler") pgm.add_edge("rain", "wet") pgm.add_edge("sprinkler", "wet") pgm.render() pgm.figure.savefig("nocircles.pdf") pgm.figure.savefig("nocircles.png", dpi=150)
This is what ipython returns to me
RuntimeError: LaTeX was not able to process the following string: 'lp' Here is the full report generated by LaTeX:
There is no report provided by ipython or LaTex. See screenshot:

The standard script on matplotlib gives me the same error. Is there a way to check if all dependencies are satisfied? LaTex is installed on my system, but I'm not sure if ipython can access it.