python - latex failure ipython daft matplotlib -


i keen try out daft (http://daft-pgm.org/) , through found out latex functionality not working in matplotlib.

i paste example on 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 ipython returns me

runtimeerror: latex not able process following string:   'lp' here full report generated latex:  

there no report supplied ipython or latex. see screenshot:

enter image description here

the standard script on matplotlib website gives me same error. there way check if dependencies met? latex installed on system not sure if ipython can access it.

in case latex library needed installed (sorry didn't pay attention one)

it automatically opened miktex installer, install suggested library , should done.

there no need 'lp' accessible command line.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -